Skip to content

Instantly share code, notes, and snippets.

@jonathanKingston
Created April 21, 2012 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanKingston/2436946 to your computer and use it in GitHub Desktop.
Save jonathanKingston/2436946 to your computer and use it in GitHub Desktop.
Router issue
BrittoRouter = Backbone.Router.extend({
routes: {
":slug/": "findPost",
},
findPost: function(slug) {
alert(slug);
}
});
Router = BrittoRouter();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment