require-handlebars-plugin
require-handlebars-plugin copied to clipboard
each helper should reside in its own file?
require({
hbs : {
helperPathCallback: function(name) {return 'cs!/helpers/' + name;}
}
}, ['main'])
suggests that each handlebar(with name
) should have name
file.
What if I have collection of helpers in multiple files under non standard (not templates/helper
) directory?
How do I make hbs know about it?
This has been asked https://github.com/SlexAxton/require-handlebars-plugin/issues/168
What if we want to use some 3rd party helper libraries such as
https://github.com/assemble/handlebars-helpers https://github.com/elving/swag
bump