A requirejs wrapper for the mustache compiler.
Load mustache / hogan.js templates dynamically during development and compile them during build to achieve greater performance.
Define an external template like
Load it with the
// this will load the "foo.mustache" file;
The plugin code is only required for dynamic load so you can use the
stubModules to remove the
hgn! plugins during build,
test/build.js for example.
Example files are inside the
test folder, to test build run:
cd testnode build
It will update the
templateproperty to the compiled template.
Template#rendermethod instead of the
Released under the MIT license.