Skip to content

Instantly share code, notes, and snippets.

@thehydroimpulse
Created October 29, 2012 02:50
Show Gist options
  • Select an option

  • Save thehydroimpulse/3971186 to your computer and use it in GitHub Desktop.

Select an option

Save thehydroimpulse/3971186 to your computer and use it in GitHub Desktop.
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());
(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