Created
October 29, 2012 02:50
-
-
Save thehydroimpulse/3971186 to your computer and use it in GitHub Desktop.
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
| var container = new Container(); | |
| container.configure(function(){ | |
| this.set("App.PostsController", require("/app/controllers/postsController")); | |
| this.set("App.ApplicationController", require("/app/controllers/applicationController")); | |
| }); | |
| window.App = var App = container.alias("App"); | |
| container.append("App.ControllerInstances", new App.PostsController()); |
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
| (function(){ | |
| var Class; | |
| Class = (function(){ | |
| function PostsController(){} | |
| PostsController.prototype.index = function(action, context){ | |
| // Do Something: | |
| }; | |
| return PostsController; | |
| })(); | |
| }).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment