const Engine = require('{%= name %}');
const engine = new Engine();
// register helpers
engine.helper('titlecase', str => {
return str.replace(/\b(\w)/g, (m, $1) => $)
});
const locals = { name: 'brian woodward' };
engine.render('Hi, <%= titlecase(name) %>!', locals); //=> 'Hi, BRIAN!'
{%= apidocs("index.js") %}