riot-dispatcher
v0.2.5
Published
Tiny Express-inspired router for Riot 2.2
Downloads
2
Maintainers
Readme
Riot Dispatcher
Tiny Express-inspired router for Riot 2
riot.dispatcher.hash('/', index)
riot.dispatcher.hash('/user/:user', show)
riot.dispatcher.hash('/user/:user/edit', edit)
riot.dispatcher.hash('/user/:user/album', album)
riot.dispatcher.hash('/user/:user/album/sort', sort)
riot.dispatcher.hash('*', notfound)
Use Versions
- Riot v2.2
Installation
for Browser
Download riot-dispatcher.min.js (master)
or
Bower
bower install riot-dispatcher --save
License
MIT.