0.0.2 • Published 11 years ago
href-router v0.0.2
href router
catch links that end with ! and emit js events. useful for lightweight app routing (uses a single global 'live' listener)
requires zepto.js with the .live and .tap components loaded
usage
function onModal(route) { app.emit('modal', route) }
hrefRouter.catchRoutes(onModal, $('.container')[0])
BSD LICENSE