twitter / hogan.js

A compiler for the Mustache templating language
http://twitter.github.io/hogan.js
Apache License 2.0
5.14k stars 431 forks source link

Add hulk support for node exports format #246

Closed rtfpessoa closed 5 years ago

rtfpessoa commented 8 years ago

Allow export of templates in node format, also supporting browserify/webpack processing

If we are creating a aggregated out put the export will expose a template map like it is already doing to the global variable, but in this case we use module.export and global. for browser interoperability.

If we are crearing one file per template it adds the template directly in the module.exports.