Import 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" }
.template%h1= @titleMyTemplate=require("templates/my_template.hamlc")MyTemplate({title: 'Go Boundless!'})will return the HTML:
<divclass="template"><h1>Go Boundless!</h1></div>