node package manager

broccoli-jade

Compile Jade templates

broccoli-jade

Compile Jade templates

Issues with the output should be reported on the Jade issue tracker.

$ npm install --save-dev broccoli-jade
var jade = require('broccoli-jade');
tree = jade(tree, options);

Include paths are resolved relative to the root of the tree, not to the Jade file itself. There are however workarounds to this, for example by using broccoli-static-compiler - here's an example.

See the Jade options.

In addition you can pass in options.data that will be used as locals for your HTML compilation.

MIT © Sindre Sorhus