karma-sc-haml2html-preprocessor
v0.0.8
Published
A Karma plugin: Compile HAML templates to HTML on the fly.
Downloads
4
Maintainers
Readme
Karma Haml2Html Preprocessor
This plugin is heavily based on karma-html2js-preprocessor. It takes in all HAML files and preprocesses them into HTML, which is then stored in window.__haml__
.
This README assumes knowledge of Karma.
To use, first install the HAML Ruby gem and plugin with
gem install bundler gemrat
gemrat haml
bundle install
npm install karma-sc-haml2-html-preprocessor
Then, in your karma configuration:
{
preprocessors: {
'**/*.haml': 'sc-haml2html'
}
}