browserify-hogan is a Browserify transform plugin for precompiling Hogan.js Mustache templates at build time. Version 0.3.0 supports file extensions .ms, .mustache, .hogan, .hg, and .html, and includes an optional minification step via html-minifier. It integrates seamlessly with Browserify's transform pipeline, allowing templates to be required like regular modules. The package is stable but receives infrequent updates; no releases since 2014. Alternative: hoganify offers similar functionality.
npm install browserify-hoganNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installing and using browserify-hogan to precompile a Mustache template, require it, render with data, and build into a bundle.
Consider using hoganify or migrate to a more modern template system like Handlebars with Webpack/Rollup.
Use static require statements for templates to ensure they are precompiled.
Run npm install hogan.js --save alongside browserify-hogan.
npm install hogan.js --save
npm install browserify-hogan --save-dev