neuron-ejs-compiler
The ejs compiler module for neuron
Install
$ npm install neuron-ejs-compiler --save
Usage
var ejs_compiler = require('neuron-ejs-compiler');
var builder = require('neuron-builder');
builder(entry, {
pkg: pkg,
cwd: cwd,
compilers: [{
test: /\.ejs$/,
compiler: ejs_compiler,
options: ejs_options
}]
}, function(err, content){
// if no `err`, `content` will be the bundled content.
});
see neuron-builder for more details.
ejs_options
Default specified options for jade
- filename: will always be the filename of the current file
- compileDebug:
false
- rmWhitespace:
true
removes all safe-to-remove whitespace.
Other options are not set by default, see here for details
License
MIT