Grunt plugin for compiling haml files
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
tasks
test
.gitignore
.npmignore
Changes
LICENSE-MIT
README.md
grunt.js
package.json

README.md

NOTE This has now been superseded by https://github.com/concordusapps/grunt-haml. Please use that instead.


grunt-haml

Grunt plugin for compiling haml files

Important Note

We use haml-js to produce your HTML and therefore have the same limitations.

haml-js does not conform to the same spec as haml, so you may find you need to make a whole lot of changes to your Haml.

If a more Haml-compliant node module comes available we will gladly switch to it.

Getting Started

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

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

task.loadNpmTasks('grunt-haml');

Documentation

Add something like the following to your grunt.js gruntfile:

haml: {
  index: {
    src: "src/index.haml",
    dest: "dist/index.htm"
  }
},

Contributing

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.

License

Copyright (c) 2012 Andrew Jones
Licensed under the MIT license.