summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-10-17 01:55:10 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-10-17 01:55:10 -0700
commit449425708f9c7ec76b0dd72830cfe7349ff46ae0 (patch)
treeb6aa5f8eb347436fa030deac5855668d2fb8a817
parent6f0a3612c240940e079e06f1c16c65a6c1b54a7d (diff)
downloadpystache-449425708f9c7ec76b0dd72830cfe7349ff46ae0.tar.gz
Adjust ParsedTemplate docstrings.
-rw-r--r--pystache/parsed.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/pystache/parsed.py b/pystache/parsed.py
index e94c644..a7c0aae 100644
--- a/pystache/parsed.py
+++ b/pystache/parsed.py
@@ -8,6 +8,16 @@ Exposes a class that represents a parsed (or compiled) template.
class ParsedTemplate(object):
+ """
+ Represents a parsed or compiled template.
+
+ An instance wraps a list of unicode strings and node objects. A node
+ object must have a `render(engine, stack)` method that accepts a
+ RenderEngine instance and a ContextStack instance and returns a unicode
+ string.
+
+ """
+
def __init__(self):
self._parse_tree = []
@@ -18,10 +28,8 @@ class ParsedTemplate(object):
"""
Arguments:
- node: a unicode string or node object instance. A node object
- instance must have a `render(engine, stack)` method that
- accepts a RenderEngine instance and a ContextStack instance and
- returns a unicode string.
+ node: a unicode string or node object instance. See the class
+ docstring for information.
"""
self._parse_tree.append(node)