diff options
Diffstat (limited to 'pystache/template.py')
-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 dd4ecee..10b72aa 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -94,7 +94,7 @@ class Template(object): @modifier(None) def render_tag(self, tag_name, context): """Given a tag name and context, finds, escapes, and renders the tag.""" - return cgi.escape(context.get(tag_name, '')) + return cgi.escape(str(context.get(tag_name, ''))) @modifier('!') def render_comment(self, tag_name=None, context=None): |