diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2017-01-07 15:55:20 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2017-01-07 15:55:20 +0100 |
commit | a27a503cea8779db67a1bc21218a2e05e20ce6fc (patch) | |
tree | 949189fe5c6b7b721e35bba4282d7e2b1cd7a8f5 /docs/extensions.rst | |
parent | d67f0fd4cc2a4af08f51f4466150d49da7798729 (diff) | |
download | jinja2-a27a503cea8779db67a1bc21218a2e05e20ce6fc.tar.gz |
Move the autoescape extension and with statement to be built-in
Diffstat (limited to 'docs/extensions.rst')
-rw-r--r-- | docs/extensions.rst | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/docs/extensions.rst b/docs/extensions.rst index afdfb00..635d1e4 100644 --- a/docs/extensions.rst +++ b/docs/extensions.rst @@ -183,12 +183,9 @@ With Statement **Import name:** `jinja2.ext.with_` -.. versionadded:: 2.3 +.. versionchanged:: 2.9 -This extension adds support for the with keyword. Using this keyword it -is possible to enforce a nested scope in a template. Variables can be -declared directly in the opening block of the with statement or using a -standard `set` statement directly within. +This extension is now built-in and no longer does anything. .. _autoescape-extension: @@ -197,12 +194,10 @@ Autoescape Extension **Import name:** `jinja2.ext.autoescape` -.. versionadded:: 2.4 +.. versionchanged:: 2.9 -The autoescape extension allows you to toggle the autoescape feature from -within the template. If the environment's :attr:`~Environment.autoescape` -setting is set to `False` it can be activated, if it's `True` it can be -deactivated. The setting overriding is scoped. +This extension was removed and is now built-in. Enabling the extension +no longer does anything. .. _writing-extensions: |