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:47 -0400 |
| commit | ff71d6b8de97f21208cf41cadb7fbe0bf7134bf3 (patch) | |
| tree | 3f03309d1d229a456563cd447120dddec4b8bf98 | |
| parent | 09062e9509c56088793776bfda9db056c797552e (diff) | |
[1.8.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 c7a52830c3..63d93d8c5c 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 |
