karma-sc-haml2html-preprocessor

0.0.8 • Public • Published

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'
    }
}

Package Sidebar

Install

npm i karma-sc-haml2html-preprocessor

Weekly Downloads

2

Version

0.0.8

License

MIT

Last publish

Collaborators

  • benderthecrime