grunt-jade-tasks

Grunt tasks for jade template engine

npm install grunt-jade-tasks
1 downloads in the last week
6 downloads in the last month

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
npm loves you