You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just wondering though, usually I have a bunch of template helper functions defined e.g. Handlebars.registerHelper('someFunction', function () { .. etc
And then I would compile using -k flag to 'register' the template helper function e.g. handlebars rawTemplate.handlebars -f output_dir/compiledTemplate.js -k someFunction
does the plugin support this?
The text was updated successfully, but these errors were encountered:
Not yet. I'll look at adding that next. The only way I can see to pass that info to the mapper per resource would be to use the attrs Map. I'll investigate and get back to you.
nice.
btw I run a bash script to do handlebars compile atm, and I'm storing a '-' separated list of know template helpers as a data attribute on template script tags e.g. <script id="someTmpl" type="text/x-handlebars-template" data-compile="if-else-unless-someFunction-someOtherFunction"> .. nice and easy to maintain
nice plugin !
just wondering though, usually I have a bunch of template helper functions defined e.g.
Handlebars.registerHelper('someFunction', function () { .. etc
And then I would compile using -k flag to 'register' the template helper function e.g.
handlebars rawTemplate.handlebars -f output_dir/compiledTemplate.js -k someFunction
does the plugin support this?
The text was updated successfully, but these errors were encountered: