def render(context, tree_items, use_template):
    context.push()
    context['sitetree_items'] = tree_items

    if isinstance(use_template, FilterExpression):
        use_template = use_template.resolve(context)

    content = get_template(use_template).render(context)
    context.pop()

    return content
Render helper is used by template node functions
dataset/ETHPy150Open idlesign/django-sitetree/sitetree/templatetags/sitetree.py/render