sitetree/templatetags/sitetree.py
def render(context, tree_items, use_template):
    """Render helper is used by template node functions
    to render given template with given tree items in context.

    """
    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.flatten() if _CONTEXT_FLATTEN else context)
    context.pop()

    return content
def render(context, tree_items, use_template):
    """Render helper is used by template node functions
    to render given template with given tree items in context.

    """
    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.flatten() if _CONTEXT_FLATTEN else context)
    context.pop()

    return content
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 . flatten ( ) if _CONTEXT_FLATTEN else context ) context . pop ( ) return content
Render helper is used by template node functions
    to render given template with given tree items in context.
Render helper is used by template node functions to render given template with given tree items in context .