Webpack loader for Haml-Coffee templates, allowing import of .hamlc files as template functions. Current version 0.0.11. This package is unmaintained since 2016 and relies on deprecated dependencies like haml-coffee. It returns a function that takes locals and renders HTML. No updates in years; not recommended for new projects.
npm install hamlc-loaderVerified import paths — ran on the pinned version, not inferred.
Shows webpack config to load .hamlc files and usage of the template function with locals.
Switch to an alternative like haml-loader or migrate to a different template engine.
Ensure haml-coffee is installed and compatible; check for updates or alternatives.
Use require() for .hamlc files in webpack 3 or earlier.
Run 'npm install haml-coffee --save-dev'
Add { test: /\.hamlc$/, loader: 'hamlc-loader' } to your webpack config.Use 'const template = require('./file.hamlc');'