Nero Punished Miscreants
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

riot-dispatcher

0.2.5 • Public • Published

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.

install

npm i riot-dispatcher

Downloadsweekly downloads

12

version

0.2.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability