@register.tag(name="render_page_as_template")
def render_tmpl(parser, token):
    """
    Renders model objects content as template.
    """

    try:
        tag_name, obj = token.split_contents()
    except __HOLE__:
        raise template.TemplateSyntaxError("%r tag requires a single argument" % \
                                        token.contents.split()[0])

    obj = parser.compile_filter(obj)
    return TemplateNode(obj)
dataset/ETHPy150Open niwinz/niwi-web/src/niwi/web/templatetags/utils.py/render_tmpl