Skip to content

Instantly share code, notes, and snippets.

Created November 29, 2011 20:10
Show Gist options
  • Save anonymous/1406247 to your computer and use it in GitHub Desktop.
Save anonymous/1406247 to your computer and use it in GitHub Desktop.
figuring out how to use director (flatiron js)
var routes = {
'/track' : {
'/:id' : {
on: function(id){
console.log('getting track', id);
}
}
}
};
var router = Router(routes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment