node-jadeify2
Browserify 2 transformer for precompiling client-side Jade templates.
Installation
$ npm install jadeify2
Usage
var browserify =var jadeify2 =var bundle =bundle
In order for jadeify2 to know whether the required module is a Jade template or not, we must provide the file extension in the require
:
var template =
To use on the command line, run browserify
with the --transform
/-t
flag:
$ npm install jadeify2
$ browserify -t jadeify2 main.js > bundle.js
Licence
Licenced under the New BSD License