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.

Dependencies (2)

Dev Dependencies (4)

Package Sidebar

Install

npm i riot-dispatcher

Weekly Downloads

0

Version

0.2.5

License

MIT

Last publish

Collaborators

  • jumilla