baseprime / grapnel

The smallest JavaScript router with named parameters, HTML5 pushState, and middleware support
http://grapnel.js.org
468 stars 40 forks source link

Normal route/uri support? #13

Closed kokujin closed 9 years ago

kokujin commented 10 years ago

Is it possible to use to use grapnel with "document.location.pathname" changes? I do not intend to use hashes in my URLs.

Also, is there a browser support list?

Thanks

ddevault commented 10 years ago

Bump

garygreen commented 10 years ago

Bump, I too would like to know this. There's a ton of single page app hashbang routers out there and I can't seem to find one that is suitable for use with just 'normal' links. Looking at the code for Grapnel it seems it heavily relies on hashbang routing but not that tricky to add support for normal?

garygreen commented 10 years ago

@SirCmpwn @kokujin Not to steal the thunder away from Grapnel but just to let you guys know I've created a very lightweight javascript router (support for path based routing and hash based routes too). Would be good for Grapnel to support this but figured it'll probably be easy enough to make an ultra simple and lightweight router. Check it out https://github.com/garygreen/lightrouter

baseprime commented 9 years ago

@garygreen @SirCmpwn @kokujin Pathname changes can now be detected since 0.5.1 :+1: