Grunt.js task to precompile Handlebars.js templates with the same options as the CLI utility
12
stars
12
forks
source link
Additional AMD option to return the template rather than extending the Handlebars.templates object #8
Closed
TheSisb closed 9 years ago
In my project I am compiling my templates for use within an AMD (require.js) context.
In a module, in order to use a compiled template, I do something like this:
I was wondering about the feasibility and your thoughts on modifying the compiled output as to allow something like this:
This can be achieved quite simply by changing the compiled template from:
to
Looking forward to your thoughts on this.