Command line precompilation for underscore.js templates
Command line precompilation for underscore.js templates.
Given a file system like this:
views/ layout.us home/ index.us blah.us admin/ dashboard.us
The following command:
underscorec views/ output.js
will compile the four underscore templates into the file output.js. The views are attached to a global templates object and named according to their path:
mocha --compilers coffee:coffee-script test/fs_tests.coffee