diff options
author | David Lord <davidism@gmail.com> | 2020-05-16 07:40:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 07:40:45 -0700 |
commit | eeca0fecc3318d43f61bc340ad61db641b861ade (patch) | |
tree | 5de18f76e180974fbe6381cc44c2f921a12e0e23 | |
parent | 2dd769111cbb1a2637f805b3b4c652ec8096d371 (diff) | |
parent | 7db7d336ba12574e6205fdd929386fd529e3fad4 (diff) | |
download | jinja2-eeca0fecc3318d43f61bc340ad61db641b861ade.tar.gz |
Merge pull request #1207 from mhansen/patch-1
api.rst: bugfix in docs, import PackageLoader
-rw-r--r-- | docs/api.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst index 40f9849..9d901d8 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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')) |