Skip to content

Commit 1303cac

Browse files
committed
Update docs
1 parent 491af32 commit 1303cac

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ Before template rendering you have to setup *jinja2 environment* first::
4848

4949
`Async rendering feature <http://jinja.pocoo.org/docs/2.9/api/#async-support>`_
5050
is enabled by default. You *might want* to disable that providing ``enable_async=False``
51-
keyword argument to ``setup`` method.
51+
keyword argument to ``setup`` method. There is no difference in usage between two of
52+
them. In async mode enabled if you try to invoke sync Jinja2 methods (e.g. ``render``)
53+
it will internally invoke corresponding sync method (e.g. ``render_async``) and run it
54+
as part of the current event loop until the execution finished.
5255

53-
After that you may to use template engine in your *web-handlers*. The
56+
After that you may want to use template engine in your *web-handlers*. The
5457
most convenient way is to decorate a *web-handler*.
5558

5659
Using the function based web handlers::
@@ -100,4 +103,5 @@ Or, again, a class based view::
100103
License
101104
-------
102105

103-
``aiohttp_jinja2`` is offered under the Apache 2 license.
106+
``aiohttp_jinja2`` is offered under the
107+
`Apache 2 license <https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)>`_.

0 commit comments

Comments
 (0)