think-view-xtemplate
v1.0.1
Published
use xtemplate to render view files for ThinkJS 3.x
Downloads
2
Readme
think-view-xtemplate
Use nunjucks to render view files for ThinkJS 3.x
Install
npm install think-view-xtemplate
How To Use
const xtpl = require('think-view-xtpl');
exports.view = {
type: 'xtpl',
xtpl: {
handle: xtpl,
beforeRender: (xtpl, opts) => {}
options: {
encoding: 'utf-8'
}
}
}