$ npm install handlebars-template-compiler
OR
$ yarn add handlebars-template-compiler
const compiler = require('handlebars-template-compiler');
compiler(
{
name: '洛竹',
},
'./tpl',
{
tplSuffix: 'tpl',
exclude: ['**/*.js'],
}
);
一个简单的基于 handlebars 的模板编译器
$ npm install handlebars-template-compiler
OR
$ yarn add handlebars-template-compiler
const compiler = require('handlebars-template-compiler');
compiler(
{
name: '洛竹',
},
'./tpl',
{
tplSuffix: 'tpl',
exclude: ['**/*.js'],
}
);