summaryrefslogtreecommitdiff
path: root/docs/integration.rst
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-01-24 23:08:00 -0800
committerGitHub <noreply@github.com>2020-01-24 23:08:00 -0800
commit451a15a8f50e1ed207da1210783670f75999d298 (patch)
tree136e569e5ebbba2d43485aca181b07438eac6412 /docs/integration.rst
parent8d85f9cb6b7617e62cc07dcd7f022b10027b5dab (diff)
downloadjinja2-451a15a8f50e1ed207da1210783670f75999d298.tar.gz
Revert "Rename jinja2 to jinja"revert-1121-the-great-rename
Diffstat (limited to 'docs/integration.rst')
-rw-r--r--docs/integration.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/integration.rst b/docs/integration.rst
index a7a6fe3..2cfad55 100644
--- a/docs/integration.rst
+++ b/docs/integration.rst
@@ -14,7 +14,7 @@ Babel Integration
-----------------
Jinja provides support for extracting gettext messages from templates via a
-`Babel`_ extractor entry point called `jinja.ext.babel_extract`. The Babel
+`Babel`_ extractor entry point called `jinja2.ext.babel_extract`. The Babel
support is implemented as part of the :ref:`i18n-extension` extension.
Gettext messages extracted from both `trans` tags and code expressions.
@@ -24,7 +24,7 @@ in its Babel extraction method `mapping file`_:
.. sourcecode:: ini
- [jinja: **/templates/**.html]
+ [jinja2: **/templates/**.html]
encoding = utf-8
The syntax related options of the :class:`Environment` are also available as
@@ -33,7 +33,7 @@ that templates use ``%`` as `line_statement_prefix` you can use this code:
.. sourcecode:: ini
- [jinja: **/templates/**.html]
+ [jinja2: **/templates/**.html]
encoding = utf-8
line_statement_prefix = %
@@ -61,7 +61,7 @@ Pylons powered application.
The template engine is configured in `config/environment.py`. The configuration
for Jinja looks something like that::
- from jinja import Environment, PackageLoader
+ from jinja2 import Environment, PackageLoader
config['pylons.app_globals'].jinja_env = Environment(
loader=PackageLoader('yourapplication', 'templates')
)