| @@ -5,19 +5,13 @@ | |||||
| /*global define: false*/ | /*global define: false*/ | ||||
| (function (root, factory) { | |||||
| (function (global, factory) { | |||||
| if (typeof exports === "object" && exports) { | if (typeof exports === "object" && exports) { | ||||
| factory(exports); // CommonJS | factory(exports); // CommonJS | ||||
| } else if (typeof define === "function" && define.amd) { | |||||
| define(factory({})); // AMD | |||||
| } else { | } else { | ||||
| var mustache = {}; | |||||
| factory(mustache); | |||||
| if (typeof define === "function" && define.amd) { | |||||
| define(mustache); // AMD | |||||
| } else { | |||||
| root.Mustache = mustache; // <script> | |||||
| } | |||||
| global.Mustache = factory({}); // <script> | |||||
| } | } | ||||
| }(this, function (mustache) { | }(this, function (mustache) { | ||||
| @@ -581,4 +575,6 @@ | |||||
| mustache.Context = Context; | mustache.Context = Context; | ||||
| mustache.Writer = Writer; | mustache.Writer = Writer; | ||||
| return mustache; | |||||
| })); | })); | ||||