Precompile Ember Templates with Guard and Nodejs
To precompile Ember templates you need to do it in a context with Ember loaded. That is because Ember adds some helpers to Handlebars.
To compile the templates in an Ember context I used the ember-precompile Node.js package. This means that Node.js is another development dependency, but I think the optimisation benefit you get from precompiling the templates is worth it.
I wrote the following guard plugin, to compile and merge the watched templates into a single output file.










