Skip to content

Commit

Permalink
[1.7.x] Documented Context.get() method.
Browse files Browse the repository at this point in the history
Backport of 4d94140 from master
  • Loading branch information
prestontimmons authored and timgraham committed Mar 16, 2015
1 parent 36fb3b3 commit eaf8685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ref/templates/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaf8685

Please sign in to comment.