]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
api.rst: bugfix in docs, import PackageLoader 1207/head
authorMark Hansen <markhansen@google.com>
Sat, 16 May 2020 06:04:48 +0000 (16:04 +1000)
committerGitHub <noreply@github.com>
Sat, 16 May 2020 06:04:48 +0000 (16:04 +1000)
It's used two lines below.

docs/api.rst

index 40f9849135d828ab5139d73fc6b98e5d023579fc..9d901d8a775502bc3e1b10ca6dfd9f9c38e24e78 100644 (file)
@@ -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'))