watson.framework.support.jinja2.globals

class watson.framework.support.jinja2.globals.Config[source]

Convenience method to retrieve the configuration of the application.

class watson.framework.support.jinja2.globals.Url[source]

Convenience method to access the router from within a Jinja2 template.

Example:

url('route_name', keyword=arg)
watson.framework.support.jinja2.globals.config

alias of Config

watson.framework.support.jinja2.globals.flash_messages(context)[source]

Retrieves the flash messages from the controller.

Example:

{{ flash_messages() }}
watson.framework.support.jinja2.globals.request(context)[source]

Retrieves the request from the controller.

Deprecated: Just use ‘request’

Example:

{{ request() }}
watson.framework.support.jinja2.globals.url

alias of Url