Skip to content

albertosarullo/Router.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Router.js

Routing Micro Framework ( < 1KB minified ) without dependencies

Usage:

Router.init([
  {controller: 'test', route: '/test/:name/:surname'},
  {controller: 'home', route: ''}
]).onChange(function(controller, params) {
	
});

Follow the example, with url '#/test/Alberto/Sarullo' the event will incapsulate two parameters:

controller will be: 'test'
params will be: {
  'name':    'Alberto', 
  'surname': 'Sarullo'
 }

License

MIT or WTFPL

About

Micro Routing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •