A Karma preprocessor that Compile haml script to html.
The easiest way is to keep karma-haml-preprocessor
as a devDependency in your package.json
.
{
"devDependencies": {
"karma-haml-preprocessor": "~0.1"
}
}
You can simple do it by:
npm install karma-haml-preprocessor
// karma.conf.js
module.exports = function(config) {
config.set({
files: [
'*.haml'
],
preprocessors: {
'app/assets/javascripts/**/*.haml' : 'haml'
}
});
};