roughter
v1.0.1
Published
Tiny hash router.
Downloads
5
Maintainers
Readme
Client-side URL Hash router
Tiny hash router.
router.hash('/', index)
router.hash('/user/:user', show)
router.hash('/user/:user/edit', edit)
router.hash('/user/:user/album', album)
router.hash('/user/:user/album/sort', sort)
router.hash('*', notfound)
// start router
router.start()
Installation
for Browser
Download roughter.min.js (master)
for Node.js
npm install roughter --save
License
MIT.