node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

fly-jade

Jade plugin for Fly.

npm package

Usage

Check out the documentation to see the available options.

Install

npm i -D fly-jade

Example

exports.jade = function* () {
  yield this
    .source('src/*.jade')
    .jade({base: 'src'})
    .target('dist');
};

Options

  • passing the base directory as base is necessary for jade to resolve relative includes/excludes
  • e.g. if we have a file src/index.jade which refers to a layout file src/layouts/default.jade:
extends layouts/default
 
block content
  .row
    .col-sm-12
      h1 Welcome

License

MIT © sugarshin et al