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:
matchFailed and not NaN) is passed as a parameter to the handler function. The built-in functions Number and String can be used to match numeric and string segments respectively.matchRest is allowed, and it must be the last matcher.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: