23 lines
720 B
JavaScript
23 lines
720 B
JavaScript
(function (root, factory) {
|
|
var routing = factory();
|
|
if (typeof define === 'function' && define.amd) {
|
|
// AMD. Register as an anonymous module.
|
|
define([], routing.Routing);
|
|
} else if (typeof module === 'object' && module.exports) {
|
|
// Node. Does not work with strict CommonJS, but
|
|
// only CommonJS-like environments that support module.exports,
|
|
// like Node.
|
|
module.exports = routing.Routing;
|
|
} else {
|
|
// Browser globals (root is window)
|
|
root.Routing = routing.Routing;
|
|
root.fos = {
|
|
Router: routing.Router
|
|
};
|
|
}
|
|
}(this, function () {
|
|
<%= contents %>
|
|
|
|
return { Router: Router, Routing: Routing };
|
|
}));
|