Add a route with matchers and a handler function.
Array of matcher types.
Handler function type, inferred from the matchers.
An array of matchers followed by a handler function. Each matcher can be:
MATCH_FAILED and not NaN) is passed as a parameter to the handler function. The standard JavaScript functions Number and String can be used to match numeric and string segments respectively.MATCH_REST is allowed.Dispatches the given segments to the first route handler that matches.
Array of string segments to match against the added routes. When using this class with the Aberdeen route module, one would typically pass route.current.p.
True if a matching route was found and handled, false otherwise.
Simple route matcher and dispatcher.
Example usage: