This is yet another tiny javascript library for dispatching.
var dispatcher = new MicroDispatcher();
dispatcher.register('/my/', function () {
// your code here
});
dispatcher.register('/user/:id', function (id) {
// your code here
});
dispatcher.dispatch(location.pathname);
There is no dependencies.