janl/mustache.js — pull request #285 by AMorgaut (2013-01-22 01:35:48+00:00)
Title: Fix in CommonJS support

The current CommonJS support is node.js specific as module.exports is
not part of CommonJS and is then not supported in all implementations
(ex: Rhino, Wakanda, CouchDB, ArangoDB, TeaJS...).
This correction make Mustache fully CommonJS compliant while being
still compatible with AMD, the script tag, the web worker
importScripts, and of course node.js