From 6d787a92f1e004b6bfc731be4db2bc68ae982c44 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 27 Nov 2010 20:48:34 +0900 Subject: [PATCH] disable partial rendering --- pystache/template.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pystache/template.py b/pystache/template.py index b2abdaa70..e21befa60 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -135,16 +135,16 @@ class Template(object): """Render a tag without escaping it.""" return unicode(get_or_attr(context, tag_name, '')) - @modifier('>') - def render_partial(self, tag_name=None, context=None): - """Renders a partial within the current context.""" - # Import view here to avoid import loop - from pystache.view import View + # @modifier('>') + # def render_partial(self, tag_name=None, context=None): + # """Renders a partial within the current context.""" + # # Import view here to avoid import loop + # from pystache.view import View - view = View(context=context) - view.template_name = tag_name + # view = View(context=context) + # view.template_name = tag_name - return view.render() + # return view.render() @modifier('=') def render_delimiter(self, tag_name=None, context=None):