Skip to content

Commit eeca0fe

Browse files
authored
Merge pull request #1207 from mhansen/patch-1
api.rst: bugfix in docs, import PackageLoader
2 parents 2dd7691 + 7db7d33 commit eeca0fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ in ``'.html'``, ``'.htm'`` and ``'.xml'`` and disabling it by default
275275
for all other extensions. You can use the :func:`~jinja2.select_autoescape`
276276
function for this::
277277

278-
from jinja2 import Environment, select_autoescape
278+
from jinja2 import Environment, PackageLoader, select_autoescape
279279
env = Environment(autoescape=select_autoescape(['html', 'htm', 'xml']),
280280
loader=PackageLoader('mypackage'))
281281

0 commit comments

Comments
 (0)