A navigation aid (aka, router) for the browser in 850 bytes~!
wrap
calls (#8): 0f5b5bblocation.search
) during $.run
call: (#9): 1062d25off
variable for larger gzip reuse: 77fa92dfn
handlers directly into route
objects: 11a5f29$.run
ignores query string values (#9): e7aa014With the latest version of regexparam
, Navaid can now support suffix matches
// Examples from "regexparam"
// All patterns are now valid within Navaid~!
let now = regexparam('/movies/:title.(mp4|mov)');
exec('/movies/narnia.mp4', now);
//=> { title: 'narnia' }
exec('/movies/narnia.mov', now);
//=> { title: 'narnia' }
exec('/movies/narnia.wav', now);
//=> {} (no match)
host
targets (#3): b4561f9$.run
: f1291ad