summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Roesslein <jroesslein@gmail.com>2009-11-17 14:45:57 +0800
committerChris Wanstrath <chris@ozmm.org>2009-11-17 17:29:11 +0800
commit09ab3f95d043090d86f166c5dfb1dcae6a873faa (patch)
tree478652747c78e03561776124d938fb3cf5bc5131
parent828b00177d54de49551695309a420c281ad64a9e (diff)
downloadpystache-09ab3f95d043090d86f166c5dfb1dcae6a873faa.tar.gz
Be sure to cast value to a string for unescaped tags.
-rw-r--r--pystache/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pystache/template.py b/pystache/template.py
index 10b72aa..7776a7b 100644
--- a/pystache/template.py
+++ b/pystache/template.py
@@ -104,7 +104,7 @@ class Template(object):
@modifier('{')
def render_unescaped(self, tag_name=None, context=None):
"""Render a tag without escaping it."""
- return context.get(tag_name, '')
+ return str(context.get(tag_name, ''))
@modifier('>')
def render_partial(self, tag_name=None, context=None):