diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-04-24 23:14:37 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-04-24 23:14:37 -0700 |
commit | 59a0d80911b4632625007a0959c6637f29228c3f (patch) | |
tree | 6188b909bc0f20df72bb437c49177b6348f8eae8 /pystache/tests | |
parent | 8d02bb2560f72b35fd64753e8c7ce85a61003f20 (diff) | |
download | pystache-59a0d80911b4632625007a0959c6637f29228c3f.tar.gz |
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.
Diffstat (limited to 'pystache/tests')
-rw-r--r-- | pystache/tests/examples/simple.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 '' |