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