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 gemratgemrat hamlbundle installnpm install karma-sc-haml2-html-preprocessor
Then, in your karma configuration:
preprocessors: '**/*.haml': 'sc-haml2html'