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