Added template tests and made config a true global

This commit is contained in:
Armin Ronacher 2012-10-08 07:01:49 +02:00
parent 5e88c8184d
commit f34c028125
5 changed files with 43 additions and 11 deletions

View file

@ -38,20 +38,29 @@ by default:
.. versionadded:: 0.6
.. versionchanged:: 0.10
This is now always available, even in imported templates.
.. data:: request
:noindex:
The current request object (:class:`flask.request`)
The current request object (:class:`flask.request`). This variable is
unavailable if the template was rendered without an active request
context.
.. data:: session
:noindex:
The current session object (:class:`flask.session`)
The current session object (:class:`flask.session`). This variable
is unavailable if the template was rendered without an active request
context.
.. data:: g
:noindex:
The request-bound object for global variables (:data:`flask.g`)
The request-bound object for global variables (:data:`flask.g`). This
variable is unavailable if the template was rendered without an active
request context.
.. function:: url_for
:noindex: