Browserify plugin to convert haml-coffee (.hamlc) templates to Javascript.
This package is available on npm as:
npm install haml-coffee-browserify
$ browserify -t haml-coffee-browserify foo.hamlc > bundle.js
You can configure the Hamlc compiler through package.json, under a haml-coffee-browserify key.
Check out Hamlc Compiler Options and Custom Helper Function Options for more info
For example:
"haml-coffee-browserify": {
"compilerOptions": {
"customHtmlEscape": "window.HAML.escape",
"customPreserve": "window.HAML.preserve",
"customCleanValue": "window.HAML.cleanValue",
"customSurround": "window.HAML.surround",
"customSucceed": "window.HAML.succeed",
"customPrecede": "window.HAML.precede",
"customReference": "window.HAML.reference",
"context": "window.HAML.context"
}
}
MIT
Based on the hamlify project by Paul Taylor.