From 3c60bfa0ceb4bb445ebaa65ea3d204d7c673c5b0 Mon Sep 17 00:00:00 2001 From: Carl Whittaker Date: Mon, 6 Jun 2011 23:16:07 +0100 Subject: [PATCH] Correcting regression of '0' not being rendered bug. --- pystache/template.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pystache/template.py b/pystache/template.py index bc5a8c2..76b3e12 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -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)