Commit 69490716 by Chris Jerdonek

Added call() docstring.

parent 7b1cb132
......@@ -17,8 +17,22 @@ DEFAULT_TAG_CLOSING = '}}'
END_OF_LINE_CHARACTERS = ['\r', '\n']
# TODO: what are the possibilities for val?
def call(val, view, template=None):
"""
Arguments:
val: the argument val can be any of the following:
* a unicode string
* the return value of a call to any of the following:
* RenderEngine.partial_tag_function()
* RenderEngine.section_tag_function()
* inverseTag()
* RenderEngine.literal_tag_function()
* RenderEngine.escape_tag_function()
"""
if callable(val):
(args, _, _, _) = inspect.getargspec(val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment