Namespace: currentRouteParameters

NA#currentRouteParameters

All parameters from a specific page.
Source:

Members

(static) charset :string

Charset use for render of this page.
Type:
  • string
Default Value:
  • "utf-8"
Source:

(static) controller :string

This is the file name of specific controller used for back-end part of this page.
Type:
  • string
Source:

(static) deleteSupport :boolean

Allow you to avoid or authorize DELETE response for current page.
Type:
  • boolean
Default Value:
  • false
Source:

(static) generate :string|boolean

Output name of file generate if `NA#webconfig.htmlGeneratesBeforeResponse` is set to true or if `--generate` command is used. If value is set to `false`, no generate page will be generated.
Type:
  • string | boolean
Source:

(static) getSupport :boolean

Allow you to avoid or authorize GET response for current page.
Type:
  • boolean
Default Value:
  • true
Source:

(static) injectCss :string|Array.<string>

CSS files for specific injection of CSS.
Type:
  • string | Array.<string>
Source:

(static) languageCode :string

Represent the language code for this page.
Type:
  • string
Default Value:
  • undefined
Source:

(static) mimeType :string

Content Type use for respond with this page.
Type:
  • string
Default Value:
  • "text/html"
Source:

(static) postSupport :boolean

Allow you to avoid or authorize POST response for current page.
Type:
  • boolean
Default Value:
  • true
Source:

(static) putSupport :boolean

Allow you to avoid or authorize PUT response for current page.
Type:
  • boolean
Default Value:
  • false
Source:

(static) redirect :string

Represent route to redirect if current route matched.
Type:
  • string
Source:

(static) regExp :string|boolean

Use RegExp expression as selector for route url If setted to true. Same if is a string but string represent option like "g".
Type:
  • string | boolean
Default Value:
  • false
Source:

(static) statusCode :number

Status Code use for respond with this page.
Type:
  • number
Default Value:
  • 200
Source:

(static) template :string

This is the file name of template used for render of page behind the route.
Type:
  • string
Source:

(static) url :string

If setted, replace « The url listening ». « The url listening. » become a « key » value.
Type:
  • string
Source:

(static) variation :string

Name of file for `specific` variation.
Type:
  • string
Source: