handlebars-template-compiler Install $ npm install handlebars-template-compiler OR $ yarn add handlebars-template-compiler Usage const compiler = require('handlebars-template-compiler'); compiler( { name: '洛竹', }, './tpl', { tplSuffix: 'tpl', exclude: ['**/*.js'], } );