node package manager


Render Handlebars files with given data


Renders Handlebars files with given data.

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

Then add this line to your project's

grunt.loadNpmTasks 'grunt-renderer'
  # ... other configs 
      cwd: 'public/'
      src: ['index.hbs']
      dest: 'index.html'
      # Data to be passed to the template 
          favicon: 'http://cdn/favicon.ico'
  # ... other configs 

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Copyright (c) 2013, Derek Petersen

Licensed under the MIT license.