karma-typescript-haml-transform

Plugin for transforming haml templates

Usage no npm install needed!

<script type="module">
  import karmaTypescriptHamlTransform from 'https://cdn.skypack.dev/karma-typescript-haml-transform';
</script>

README

karma-typescript-haml-transform

NPM Version

Travis build status

Karma-Typescript :heart: Haml

This plugin is a specialized Haml compiler, which transforms haml require('./template.html.haml') templates to HTML on the fly when running tests with karma-typescript. The plugin is using the haml gem directly so be sure you have it installed before.

Installation

$ npm install --save-dev karma-typescript-haml-transform

Configuration

In the karma-typescript section of karma.conf.js:

karmaTypescriptConfig: {
    bundlerOptions: {
        transforms: [
            require("karma-typescript-haml-transform")()
        ]
    }
}