diff options
| author | Preston Timmons <prestontimmons@gmail.com> | 2015-03-16 10:55:43 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-03-16 13:09:32 -0400 |
| commit | 4d9414098bd98aacd241827a01f6ad2dff71f113 (patch) | |
| tree | 5813a4ef32250c25ffc0aef7df9e41f868cdd855 /docs/ref | |
| parent | 0ed20d5cc4bf94646ffd4e4fcbd963b9916039cd (diff) | |
Documented Context.get() method.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/api.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 4d73bf3793..05a6539988 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -415,6 +415,11 @@ dictionary syntax:: >>> c['newvariable'] 'hello' +.. method:: Context.get(key, otherwise=None) + + Returns the value for ``key`` if ``key`` is in the context, else returns + ``otherwise``. + .. method:: Context.pop() .. method:: Context.push() .. exception:: ContextPopException |
