diff options
author | Joshua Roesslein <jroesslein@gmail.com> | 2009-11-17 14:45:57 +0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2009-11-17 17:29:11 +0800 |
commit | 09ab3f95d043090d86f166c5dfb1dcae6a873faa (patch) | |
tree | 478652747c78e03561776124d938fb3cf5bc5131 | |
parent | 828b00177d54de49551695309a420c281ad64a9e (diff) | |
download | pystache-09ab3f95d043090d86f166c5dfb1dcae6a873faa.tar.gz |
Be sure to cast value to a string for unescaped tags.
-rw-r--r-- | pystache/template.py | 2 |
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): |