janl/mustache.js — Issue #160: Mustache object not exported via commonjs
Author: christophsturm
Created: 2012-01-26 13:01:03+00:00
State: open

it seems mustache.js exports only a to_html method via commonjs.
I think the Mustache Object should be exported too.

if (typeof module !== 'undefined' && module.exports) {
exports.name = Mustache.name;
exports.version = Mustache.version;

exports.to_html = function() {
return Mustache.to_html.apply(this, arguments);
};
}