Narcoleptic Pasta Manufacturer
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

grunt-jade-tasks

0.0.0 • Public • Published

Grunt tasks for jade template engine

Compile jade files into html

Installing

npm install grunt-jade-tasks --save-dev

Configure Gruntfile.js

jade: {
  options: {
    pretty: true,
    files: {
      "*": ["**/*.jade", "!layouts/*.jade"]
    }
  },
  debug: {
    options: {
      locals: {
        livereload: true
      }
    }
  },
  publish: {
    options: {
      locals: {
        livereload: false
      },
      files: {
        "*": ["**/*.jade", "!some/*.jade", "!layouts/*.jade"]
      },
      pretty: false
    }
  }
}

Descriptions

  • html compiled same file name and level directory as jade
  • 1st level options - global configuration
  • locals - variables pass to template

Keywords

none

install

npm i grunt-jade-tasks

Downloadsweekly downloads

5

version

0.0.0

license

none

repository

githubgithub

last publish

collaborators

  • avatar