Skip to content

Instantly share code, notes, and snippets.

@superlou
Created March 4, 2012 16:07
Show Gist options
  • Save superlou/1973680 to your computer and use it in GitHub Desktop.
Save superlou/1973680 to your computer and use it in GitHub Desktop.
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