Last active
September 8, 2015 16:56
-
-
Save foleyatwork/f2a67d4a28f43a55d1cd to your computer and use it in GitHub Desktop.
An example of a site.js file that works well with sqs-controller.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This variable gets added to "window" and becomes | |
| * the global namespace for your site. | |
| * | |
| * @namespace Site | |
| * @global | |
| */ | |
| var Site = {}; | |
| /** | |
| * @namespace controllers | |
| * @memberof Site | |
| */ | |
| Site.controllers = {}; | |
| /** | |
| * @method createController | |
| * @param {String} name | |
| * @param {Function} factory | |
| */ | |
| Site.createController = function(name, factory) { | |
| Site.controllers[name] = factory; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment