Skip to content

victorpantoja/jsRoutes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Manage routes with javascript in a simple way!

Resources

Stars

Watchers

Forks

Packages

No packages published