0.0.2 • Published 11 years ago
underscorec v0.0.2
underscorec
Command line precompilation for underscore.js templates.
Example
Given a file system like this:
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:
- templateslayout
- templateshome/index
- templateshome/blah
- templatesadmin/dashboard
Testing
mocha --compilers coffee:coffee-script test/fs_tests.coffee