Skip to content
Grunt task for compile jade templates
JavaScript
Find file
Latest commit 16c8473 @rhrn Init commit
Failed to load latest commit information.
tasks Init commit
README.md Init commit
package.json Init commit

README.md

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
Something went wrong with that request. Please try again.