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