component-compile

Compile all .ejs files under a directory

component-compile

Component sub-command to pre-compile all your .ejs files to requirable js files. Sorry does not work on Windows :(

With Component previously installed:

  $ npm install -g component-compile
  $ component compile <dir>
  //template.ejs has previously been compiled to template.js
  var Template = require('./template');
  var html = Template({
    title:'Pre-compiling is cool'
  });