summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/api.txt5
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