summaryrefslogtreecommitdiff
path: root/pystache/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'pystache/template.py')
-rw-r--r--pystache/template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pystache/template.py b/pystache/template.py
index 0d0859f..96aaeca 100644
--- a/pystache/template.py
+++ b/pystache/template.py
@@ -89,7 +89,7 @@ class Template(object):
elif it and hasattr(it, 'keys') and hasattr(it, '__getitem__'):
if section[2] != '^':
replacer = self.render(inner, it)
- elif it:
+ elif it and section[2] != '^':
insides = []
for item in it:
insides.append(self.render(inner, item))
@@ -154,4 +154,4 @@ class Template(object):
"""Changes the Mustache delimiter."""
self.otag, self.ctag = tag_name.split(' ')
self.compile_regexps()
- return '' \ No newline at end of file
+ return ''