Created
September 15, 2010 19:54
-
-
Save moonmaster9000/581347 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
(function() { | |
var HomeController, app, routes; | |
HomeController = { | |
index: function() { | |
return $('#main').text('Welcome!'); | |
} | |
}; | |
routes = function() { | |
return this.get('#/', HomeController.index); | |
}; | |
app = $.sammy(routes); | |
$(function() { | |
return app.run(); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment