Closed prabhg closed 8 years ago
I have my helper functions defined across multiple files. Is there a way to define multiple helper files in config while creating hbs instance?
I tried passing an array to "helpers" property of the config but it did not work.
var hbs = exphbs.create({ defaultLayout: 'main', extname: '.hbs', helpers: [hbsHelpers, hbsBlockHelpers] });
conf = { helpers: require('lodash').assign hbsHelpers,hbsBlockHelpers }
Thanks! That works! Closing the issue
I have my helper functions defined across multiple files. Is there a way to define multiple helper files in config while creating hbs instance?
I tried passing an array to "helpers" property of the config but it did not work.
var hbs = exphbs.create({ defaultLayout: 'main', extname: '.hbs', helpers: [hbsHelpers, hbsBlockHelpers] });