Update docs of rendering templates

This commit is contained in:
Frank Yu 2021-06-18 00:02:02 +08:00
parent f8ca80ce89
commit 4f84f85691

View file

@ -444,9 +444,9 @@ Here is an example template:
<h1>Hello, World!</h1> <h1>Hello, World!</h1>
{% endif %} {% endif %}
Inside templates you also have access to the :class:`~flask.request`, Inside templates you also have access to the :data:`~flask.Flask.config`,
:class:`~flask.session` and :class:`~flask.g` [#]_ objects :class:`~flask.request`, :class:`~flask.session` and :class:`~flask.g` [#]_ objects
as well as the :func:`~flask.get_flashed_messages` function. as well as the :func:`~flask.url_for` and :func:`~flask.get_flashed_messages` function.
Templates are especially useful if inheritance is used. If you want to Templates are especially useful if inheritance is used. If you want to
know how that works, see :doc:`patterns/templateinheritance`. Basically know how that works, see :doc:`patterns/templateinheritance`. Basically