From 9f6a21e0a74e11079bd148d13957e872975794d5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 27 Nov 2010 20:58:19 +0900 Subject: [PATCH] switch raw and escaped modifiers --- pystache/template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pystache/template.py b/pystache/template.py index e21befa60..a87fec2a8 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -116,7 +116,8 @@ class Template(object): return template - @modifier(None) + @modifier('{') + @modifier('&') def render_tag(self, tag_name, context): """Given a tag name and context, finds, escapes, and renders the tag.""" raw = get_or_attr(context, tag_name, '') @@ -129,8 +130,7 @@ class Template(object): """Rendering a comment always returns nothing.""" return '' - @modifier('{') - @modifier('&') + @modifier(None) def render_unescaped(self, tag_name=None, context=None): """Render a tag without escaping it.""" return unicode(get_or_attr(context, tag_name, ''))