Skip to content
Myr

Update docs of rendering templates (#4153)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Update docs of rendering templates * Improve the grammar

authored by Frank Yu · committed by GitHub · parent f8ca80c · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Grey Li <withlihui@gmail.com>

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/quickstart.rst+3 added-3 removed
442 unmodified lines
443 {% else %}444 <h1>Hello, World!</h1>445 {% endif %}446447Inside templates you also have access to the :class:`~flask.request`,448:class:`~flask.session` and :class:`~flask.g` [#]_ objects449as well as the :func:`~flask.get_flashed_messages` function.447Inside templates you also have access to the :data:`~flask.Flask.config`,448:class:`~flask.request`, :class:`~flask.session` and :class:`~flask.g` [#]_ objects449as well as the :func:`~flask.url_for` and :func:`~flask.get_flashed_messages` functions.450451Templates are especially useful if inheritance is used. If you want to452know how that works, see :doc:`patterns/templateinheritance`. Basically453template inheritance makes it possible to keep certain elements on each
485 unmodified lines