watson.framework.support.jinja2.globals¶
-
class
watson.framework.support.jinja2.globals.Config(application)[source]¶ Convenience method to retrieve the configuration of the application.
-
class
watson.framework.support.jinja2.globals.Url(router)[source]¶ Convenience method to access the router from within a Jinja2 template.
Example:
url('route_name', keyword=arg)
-
watson.framework.support.jinja2.globals.flash_messages(context)[source]¶ Retrieves the flash messages from the controller.
Example:
{{ flash_messages() }}