Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 813 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 813 Bytes

Themeleon Jade

Jade mixin for Themeleon.

Warning: this repository/package is deprecated, template engines will be handled by consolidate.js in Themeleon 3.0.

Installation

In your package.json:

{
  "dependencies": {
    "themeleon": "1.*",
    "themeleon-jade": "1.*"
  }
}

Usage

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);
});