twitter/hogan.js — Issue #15: Include HoganTemplate function as a standalone file
Author: danielstocks
Created: 2011-12-27 11:54:29+00:00
State: open

It would be useful if there was some kind of build script, that would automagically extract the HoganTemplate function, into a separate .js file that could be included in a web-browser, when parsing "pre-compiled" templates. It would make using tools like this more straight-forward:

https://github.com/danielstocks/hedgehog

Right now, you'll have to manually extract the HoganTemplate function from the hogan.js script, to avoid including the whole library in the browser.

Dust.js already does something like this:

https://github.com/akdubya/dustjs/tree/master/dist

Thanks for allt the great work on hogan.js btw, loving it so far!