Haml-Coffee (Hamlc) Loader for Webpack
Import haml-coffee files as modules in your webpack project. Returns a template function to render the template.
Setup
Add to your webpack config module.loaders:
{ test: /\.hamlc$/, loader: "hamlc-loader" }
Including templates in modules
webpack/assets/javascripts/templates/my_template.hamlc
template %h1= @title
webpack/assets/javascripts/modules/my_module.js
MyTemplate =
will return the HTML:
Go Boundless!