/** * render-with-custom-setup.txt.bud * This is a bud file for "examples/06-customize-coz" */ // Bud with custom setup module.exports = { force: true, mode: '444', // Template with using custom helper function. tmpl: 'Hey, {{emphasize msg}}', engine: 'handlebars', // Setup options for handlebars engine. setup: { // Register custom handlebars helpers. helpers: { 'emphasize': function (txt) { return txt.toUpperCase() + '!!!!'; } } }, data: { 'msg': 'watch out' } }; if (!module.parent) { require('coz').render(__filename); }