Commit c76e2345 by Chris Jerdonek

A couple docstring tweaks.

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