node-framework
Version:
node-framework
42 lines (30 loc) • 684 B
JavaScript
/**
* @file view.js
* @author sekiyika (px.pengxing@gmail.com)
* @description
* 后端模板的配置
*/
module.exports = {
// 指定使用什么模板
engine: 'etpl',
// engine 需要符合
// engine: function () {}
// 指定文件的后缀
ext: 'tpl',
// 是否需要缓存
cache: false,
// 渲染时所使用的参数
// 根据不同的模板引擎配置不同的
options: {
commandOpen: '{{',
commandClose: '}}',
includedFiles: [ 'common/*' ]
},
plugins: [
'testPlugin'
]
// node-framework也默认支持etpl,
// options: {
// includedFiles: []
// }
};