NOTE This has now been superseded by https://github.com/concordusapps/grunt-haml. Please use that instead.
Grunt plugin for compiling haml files
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.
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');
Add something like the following to your grunt.js
gruntfile:
haml: {
index: {
src: "src/index.haml",
dest: "dist/index.htm"
}
},
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) 2012 Andrew Jones
Licensed under the MIT license.