andre
v0.0.2
Published
a Node.js file-watching template compiler for ejs and underscore templates
Downloads
8
Readme
Andre
Andre is a Node.js file-watching template compiler for ejs and underscore templates. By default it will output compiled ejs templates as javascript files, although it can optionally output rendered templates files as well. Andre can optionally use underscore as its templating engine, or you can specify a custom template engine.
example
The example below would compile and watch ejs files in the 'src' directory and output javascript files in the 'dist' directory:
var andre = require('andre');
andre.watch('src', 'dist');
installation
#### test
To run tests for Andre, [Mocha](https://github.com/visionmedia/mocha) and [Expect.js](https://github.com/LearnBoost/expect.js) must be installed. If they are not, install them using npm, e.g.
```npm install mocha expect.js -g
To run the tests, clone this repo, cd to your local repo's directory and type
```mocha
#### license
MIT (see LICENSE.txt)