mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
disable partial rendering
This commit is contained in:
parent
9e790ce747
commit
6d787a92f1
1 changed files with 8 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue