From 59a0d80911b4632625007a0959c6637f29228c3f Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Tue, 24 Apr 2012 23:14:37 -0700 Subject: Refactored by adding a resolve() function to context.py: The resolve() function is responsible for the interpolation name resolution rules described in the Mustache spec. Also, falsey values are now coerced to strings using Python's str(), which is more in line with the spec. --- pystache/tests/examples/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pystache/tests') diff --git a/pystache/tests/examples/simple.py b/pystache/tests/examples/simple.py index 4e611d0..ea82e9d 100644 --- a/pystache/tests/examples/simple.py +++ b/pystache/tests/examples/simple.py @@ -12,4 +12,4 @@ class Simple(TemplateSpec): return "pizza" def blank(self): - pass + return '' -- cgit v1.2.1