mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
Correcting regression of '0' not being rendered bug.
This commit is contained in:
@@ -13,6 +13,9 @@ def call(view, x, template=None):
|
||||
x = x(template)
|
||||
else:
|
||||
x = x(view, template)
|
||||
elif not x and x != 0:
|
||||
return unicode('')
|
||||
|
||||
if callable(x):
|
||||
x = x(template)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user