twitter/hogan.js — pull request #59 by stephank (2012-03-22 13:57:37+00:00)
Title: Fix Node.js wrapper.

When `compiler.js` is used as a module, it operates on the empty `exports` object, without `Hogan.Template`. This causes `Hogan.template` to be `undefined`, and Hogan.js to throw an error when trying to instantiate it.

This patch hooks `Hogan.template` up in the Node.js wrapper; it's not needed in the browser.

The bug also occurs in `make release`.