Webpack Haml loader using actual Ruby `haml`
npm install ruby-haml-loaderImport Haml files as modules in your webpack project. Returns a rendered template.
This is very slow. It was created for temporary use until converting to Jade.
This README is based on the one from haml-loader.
Add to your webpack config module.loaders:
```
{ test: /\.html\.haml$/, loader: "ruby-haml" }
`javascript`
.template
%h1 {{ title }}
`javascript`
require("templates/my_template.html.haml")
will return the HTML:
`html`
`javascript`
require("!haml?title=test!templates/my_template.html.haml")
will return the HTML:
`html`
test
ruby-haml-loader can be nicely chained with ngtemplate-loader
```
{ test: /\.html\.haml$/, loaders: ['ngtemplate?relativeTo=assets/javascripts', 'ruby-haml'] },