Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

A little client-side router I made

edited February 2013 in Apps

Just wanted to share a freshly cleaned up bit of code that grew out of my Festivalist project: A client-side request router based on History.js that can help in building single-page web apps:

A request router simply matches URLs with JavaScript functions. It can intercept link clicks for client-side handling, while dynamically updating the window location via History.js, and will trigger the appropriate function based on the initial window location on page load too, so the client can respond correctly to inbound links to routes as well.


Sign In or Register to comment.