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:13:57 -0400 |
| commit | eaf86858d40d40384375bd967b34818d0d8a9979 (patch) | |
| tree | aefaa0cdd58741051c428434344fbe2a35502e2f | |
| parent | 36fb3b39de312a1283d2d08f1ed3b602c8ca7f84 (diff) | |
[1.7.x] Documented Context.get() method.
Backport of 4d9414098bd98aacd241827a01f6ad2dff71f113 from master
| -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 9e5964c9ff..a76d325e0f 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -322,6 +322,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 |
