Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lizheming/think-view-xtemplate
Use nunjucks to render view files for ThinkJS 3.x
https://github.com/lizheming/think-view-xtemplate
Last synced: 1 day ago
JSON representation
Use nunjucks to render view files for ThinkJS 3.x
- Host: GitHub
- URL: https://github.com/lizheming/think-view-xtemplate
- Owner: lizheming
- License: mit
- Created: 2017-07-19T13:03:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T03:50:11.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T19:26:44.559Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- think-awesome - think-view-xtemplate
README
# think-view-xtemplate
Use nunjucks to render view files for ThinkJS 3.x## Install
```
npm install think-view-xtemplate
```## How To Use
```js
const xtpl = require('think-view-xtpl');
exports.view = {
type: 'xtpl',
xtpl: {
handle: xtpl,
beforeRender: (xtpl, opts) => {}
options: {
encoding: 'utf-8'
}
}
}
```