Route
Summary
The Route class is for defining a route
Constructor
Route
Syntax
Route
()
Summary
Methods
view
Syntax
view
(
-
[view]
Summary
The view that implements this route If called with no parameters, it returns the currently set view in this route.
Parameters:
-
[view]
View optional- The view that implements this route
Returns:
view
Example:
url_view = m.app.route("index.html").view;
Properties
regex
Syntax
regex
String
Summary
The URL regex referenced by this route
Example:
url_regex = m.app.route("index.html").regex;