Created
March 4, 2012 16:07
-
-
Save superlou/1973680 to your computer and use it in GitHub Desktop.
This file contains 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 Router = Backbone.Router.extend({ | |
routes: { | |
"": "index", | |
"profiles": "profiles", | |
"profiles/:id": "index" | |
}, | |
index: function() { | |
var home = new Home.Model({con_name: "Bureaucracon"}); | |
var home_view = new Home.Views.Main({model: home}); | |
}, | |
profiles: function() { | |
var home = new Home.Model({con_name: "Bureaucracon"}); | |
var home_view = new Home.Views.Main({model: home}); | |
var profiles = new Profile.Collection(); | |
var profiles_view = new Profile.Views.Listing({el: '#content'}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment