diff options
author | Chris Wanstrath <chris@ozmm.org> | 2009-10-30 11:09:03 -0700 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2009-10-30 11:09:03 -0700 |
commit | 05a1c5756559ed47a3dff86a956d2ddee46cf00b (patch) | |
tree | 2545b9d5a2016bd8e1be66eda73ac1be1f63b02a | |
parent | 8de2493efc68151eb5d476f3149b5df0dbefeec0 (diff) | |
download | pystache-05a1c5756559ed47a3dff86a956d2ddee46cf00b.tar.gz |
whitespace
-rw-r--r-- | pystache/template.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pystache/template.py b/pystache/template.py index 56650aa..e8c04a4 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -27,7 +27,7 @@ class Template(object): match = SECTION_RE.search(template) if match is None: break - + section, section_name, inner = match.group(0, 1, 2) it = context.get(section_name) @@ -41,7 +41,7 @@ class Template(object): ctx.update(item) insides.append(self.render(inner, ctx)) replacer = ''.join(insides) - + template = template.replace(section, replacer) return template @@ -52,7 +52,7 @@ class Template(object): match = TAG_RE.search(template) if match is None: break - + tag, tag_type, tag_name = match.group(0, 1, 2) func = 'render_' + self.tag_types[tag_type] |