Skip to content

Commit 7db7d33

Browse files
authored
api.rst: bugfix in docs, import PackageLoader
It's used two lines below.
1 parent 9ec465b commit 7db7d33

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)