You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
Not a high priority for me, but probably something to consider. It looks like it would be pretty easy to support as it just impacts the wrapper code around the generated .js file.
(function(root,factory){if(typeofexports==="object"&&exports){module.exports=factory;// CommonJS}elseif(typeofdefine==="function"&&define.amd){define(factory);// AMD}else{root.Mustache=factory;// <script>}}(this,(function(){// body code herevarexports={};// bind all exported identifiers -- similar to current outputreturnexports;}())));
This would work with require.js, CommonJS (e.g. node.js), and plain <script> tags.