Skip to content

Commit

Permalink
api.rst: bugfix in docs, import PackageLoader
Browse files Browse the repository at this point in the history
It's used two lines below.
  • Loading branch information
mhansen authored May 16, 2020
1 parent 9ec465b commit 7db7d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ in ``'.html'``, ``'.htm'`` and ``'.xml'`` and disabling it by default
for all other extensions. You can use the :func:`~jinja2.select_autoescape`
function for this::

from jinja2 import Environment, select_autoescape
from jinja2 import Environment, PackageLoader, select_autoescape
env = Environment(autoescape=select_autoescape(['html', 'htm', 'xml']),
loader=PackageLoader('mypackage'))

Expand Down

0 comments on commit 7db7d33

Please sign in to comment.