API Docs for:
Show:

Route

Defined in: js/route.js:1
Module: Router

Summary

The Route class is for defining a route

Constructor

Route

Defined in js/route.js:1

Syntax

Route

()

Summary

Item Index

Methods

Properties

Methods

view

Defined in js/route.js:45

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

Defined in js/route.js:35

Syntax

regex

String

Summary

The URL regex referenced by this route

Example:

url_regex = m.app.route("index.html").regex;