Riot Router
Router is a generic tool to take care of the URL and the back button. It's the smallest implementation you can find and it works on all browsers including IE9. It can do the following:
- Change the hash part of the URL
- Notify when the hash changes
- Study the current hash
You can place routing logic everywhere; in custom tags or non-UI modules. Some application frameworks make the router a central element that dispatches work to the other pieces of the application. Some take a milder approach where URL events are like keyboard events, not affecting the overall architecture.
Every browser application needs routing since there is always an URL in the location bar.
Documentation
See also riotjs.com:
Installation
npm
$ npm install --save riot-route
Bower
$ bower install --save riot-route
Demos
Development
$ npm install
to setup$ make build
to build it once$ make watch
to watch and build it continuously$ npm test
to test