Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Forked from anonymous/director usage
Created November 29, 2011 21:34
Show Gist options
  • Save heapwolf/1406611 to your computer and use it in GitHub Desktop.
Save heapwolf/1406611 to your computer and use it in GitHub Desktop.
figuring out how to use director (flatiron js)
var routes = {
'/track' : {
on: function() {
alert('a');
},
'/:id' : {
on: function(id){
alert('b');
}
}
}
};
var router = Router(routes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment