Skip to content

Commit

Permalink
Merge pull request #1207 from mhansen/patch-1
Browse files Browse the repository at this point in the history
api.rst: bugfix in docs, import PackageLoader
  • Loading branch information
davidism authored May 16, 2020
2 parents 2dd7691 + 7db7d33 commit eeca0fe
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 eeca0fe

Please sign in to comment.