twitter/hogan.js — Issue #12: export via a single object
Author: neonstalwart
Created: 2011-12-24 19:45:16+00:00
State: open

@sayrer (regarding some comments in #10 and #7) why not put HoganTemplate inside the iife that produces Hogan and include it as part of the return statement?

```js
var Hogan = (function () {
var HoganTemplate = (function () {
// ...
})();

// in the generate function, use Hogan.Template rather than HoganTemplate so that
// the template can be replaced

// ...

return {
Template: HoganTemplate,
// ...
};
})();
```

then you only have a single export (`Hogan`) and don't have the inconsistency of `HoganTemplate` in the browser and `Hogan.Template` in node