diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-28 00:53:10 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-28 00:59:00 +0100 |
| commit | 02f9e90fdfe795992d674094fe25919bb885bf0d (patch) | |
| tree | 5abe9151f61abdb7d13a5eccc77e536e18d5e57d /docs/ref | |
| parent | 655b8bb10b3c00d6c96e357d085c20b397a2ffa0 (diff) | |
[1.6.x] Fixed #21515 -- Corrected example of template.Context in documentation.
Thanks to trac user oubiga for the report.
Backport of 077af42139db84d88f293ab5eadc989a9169dce1 from master.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/api.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 669016ae00..acaf0e75e5 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -311,10 +311,12 @@ If you ``pop()`` too much, it'll raise >>> c = Context() >>> c['foo'] = 'first level' >>> c.push() + {} >>> c['foo'] = 'second level' >>> c['foo'] 'second level' >>> c.pop() + {'foo': 'second level'} >>> c['foo'] 'first level' >>> c['foo'] = 'overwritten' |
