diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-17 01:55:10 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-17 01:55:10 -0700 |
commit | 449425708f9c7ec76b0dd72830cfe7349ff46ae0 (patch) | |
tree | b6aa5f8eb347436fa030deac5855668d2fb8a817 /pystache | |
parent | 6f0a3612c240940e079e06f1c16c65a6c1b54a7d (diff) | |
download | pystache-449425708f9c7ec76b0dd72830cfe7349ff46ae0.tar.gz |
Adjust ParsedTemplate docstrings.
Diffstat (limited to 'pystache')
-rw-r--r-- | pystache/parsed.py | 16 |
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) |