Component sub-command to pre-compile all your .ejs files to requirable js files. Sorry does not work on Windows :(
With Component previously installed:
$ [sudo] 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'
});