Route implementation for client-side routers.
$ component install component/route
Initialize a Route
with a path
string or regexp.
Add before fn
used when the "page" is shown. This
may be invoked any number of times.
Assign after fn
used to perform cleanup when
an alternate "page" is shown. This may be invoked
any number of times.
Invoke callbacks of type
with args
array.
Match against the given path
. Returns false
or
an array with params matched.
MIT