hamlc loader module for webpack
npm install hamlc-loaderImport haml-coffee files as modules in your webpack project. Returns a template function to render the template.
Add to your webpack config module.loaders:
`````
{ test: /\.hamlc$/, loader: "hamlc-loader" }
``javascript``
.template
%h1= @title
``javascript``
MyTemplate = require("templates/my_template.hamlc")
MyTemplate({title: 'Go Boundless!'})
will return the HTML:
``html```
Go Boundless!