Looking at the Handlebars.js documentation for precompilation.
The instructions are for OSX. Can this be done on Windows as well?
If so, when they say to "install node and npm" does "node" refer to "node.js"?
Looking at the Handlebars.js documentation for precompilation.
The instructions are for OSX. Can this be done on Windows as well?
If so, when they say to "install node and npm" does "node" refer to "node.js"?
Run in the command prompt:
Now you can use the following syntax in the command prompt:
,where
<input>
is an original template file name, and<output>
is a pre-compliled template file name.Example:
It seems like ASP.NET Web Tools 2012.2 has built in handlebars support (from Scott Hanselman's blog):
In visual studio you have 2 options:
1) using a bundle transform from System.Web.Optimization
2) using a postbuild event in visual studio (requires nodejs)
see Gist