2.0.1 • Published 8 years ago

neuron-ejs-compiler v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Build Status

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

2.0.1

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago