Returns parse route object.
parseRoute(route)
route |
string dynamic route |
Returns object.
Description
The
route argument is a string, for example:
Returns
You can also define some routes as optional:
Returns
The "path" returned can be used as a regular expression to compare if path matches.
This method is used internally to process routes for w2toolbar, w2sidebar, w2tabs, etc.