jsRoute has been designed to manage routes in web pages using javascript.
Imagine you have a page example.com that shows an agenda. Now, imagine you have example.com#11-04-2012 and you want to show only events happening this day. Why could you worry about this hash if jsRoute can do it for you in a very simple way?
route.add(‘^$’, function(){ //DO SOME STUFF HERE; });
route.add(‘^\d{1,2}\-\d{1,2}-\d{4}$’, function(day){ // GET A STRING LIKE 11-04-2012 console.debug(day); });
There are no known issues at the time.
0.2.0: Added a new function “call” to force an execution of a specific route