Commit c492ee56 by Chris Jerdonek

Some corrections to Template docstrings.

parent 1cb0d1f5
...@@ -71,8 +71,6 @@ class Template(object): ...@@ -71,8 +71,6 @@ class Template(object):
template: a template string as a unicode string. Behavior is template: a template string as a unicode string. Behavior is
undefined if the string has type str. undefined if the string has type str.
context: a dictionary, Context, or View instance.
load_template: the function for loading partials. The function should load_template: the function for loading partials. The function should
accept a single template_name parameter and return a template as accept a single template_name parameter and return a template as
a string. Defaults to the default Loader's load_template() method. a string. Defaults to the default Loader's load_template() method.
...@@ -257,6 +255,13 @@ class Template(object): ...@@ -257,6 +255,13 @@ class Template(object):
attribute is not None, in which case the return value has type str attribute is not None, in which case the return value has type str
and is encoded using that encoding. and is encoded using that encoding.
Arguments:
context: a dictionary, Context, or object (e.g. a View instance).
**kwargs: additional key values to add to the context when rendering.
These values take precedence over the context on any key conflicts.
""" """
self._initialize_context(context, **kwargs) self._initialize_context(context, **kwargs)
......
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