Commit c76e2345 by Chris Jerdonek

A couple docstring tweaks.

parent 761ccf44
......@@ -48,7 +48,7 @@ class RenderEngine(object):
"""
Provides a render() method.
This class is meant only for internal use by the Template class.
This class is meant only for internal use.
As a rule, the code in this class operates on unicode strings where
possible rather than, say, strings of type str or markupsafe.Markup.
......
......@@ -26,12 +26,12 @@ class View(object):
Arguments:
partials: the object (e.g. pystache.Loader or dictionary)
responsible for loading partials during the rendering process.
The object should have a get() method that accepts a string and
returns the corresponding template as a string, preferably as a
unicode string. The method should return None if there is no
template with that name, or raise an exception.
partials: a custom object (e.g. dictionary) responsible for
loading partials during the rendering process. The object
should have a get() method that accepts a string and returns
the corresponding template as a string, preferably as a
unicode string. The method should return None if there is
no template with that name, or raise an exception.
"""
if template is not None:
......
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