npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

neuron-ejs-compiler

2.0.1 • Public • Published

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

install

npm i neuron-ejs-compiler

Downloadsweekly downloads

6

version

2.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability