Warning: this repository/package is deprecated, template engines will be handled by consolidate.js in Themeleon 3.0.
In your package.json
:
{
"dependencies": {
"themeleon": "1.*",
"themeleon-jade": "1.*"
}
}
var themeleon = require('themeleon')();
// Use the Jade mixin
themeleon.use('jade');
// Or inject your own instance
themeleon.use('jade', require('jade'));
module.exports = themeleon(__dirname, function (t) {
var options = {
pretty: true,
};
// Compile a Jade view as `index.html` in destination directory
t.jade('views/index.jade', 'index.html', options);
});