UNPKG

608 BJavaScriptView Raw
1(function (root, factory) {
2 if (typeof define === 'function' && define.amd) {
3 define([], factory);
4 } else if (typeof exports === 'object') {
5 module.exports = factory();
6 } else if (typeof root{{namespace}} === 'undefined' || root{{namespace}} !== Object(root{{namespace}})) {
7 throw new Error('{{internalNamespace}}: window{{namespace}} does not exist or is not an object');
8 } else {
9 root{{namespace}}.{{internalNamespace}} = factory();
10 }
11}(this, function () {
12 {{jade}}
13
14 var {{internalNamespace}} = {};
15{{code}}
16 return {{internalNamespace}};
17}));
\No newline at end of file