Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 666 Bytes

README.rdoc

File metadata and controls

28 lines (17 loc) · 666 Bytes

jsRoute

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?

Example

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); });

Known Issues

There are no known issues at the time.

Change Log

0.2.0: Added a new function “call” to force an execution of a specific route