grunt-handlebars

Grunt task for precompiling Handlebars template.

npm install grunt-handlebars
7 downloads in the last week
51 downloads in the last month

grunt-handlebars

Grunt task for precompiling Handlebars template.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-handlebars

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-handlebars');

Usage

// Project configuration.
grunt.initConfig({
  handlebars: {
    all: {
      src: 'templates',
      dest: 'js/templates.js'
    }
  }
});

Note: src should point to the templates directory which contains the *.handlebars files.

Release History

  • May 30, 2012 - 0.0.2 Minor fixes
  • May 29, 2012 - 0.0.1 First release

License

Copyright (c) 2012 - Intellum Inc. Licensed under the MIT License http://intellum.com

npm loves you