def do_render(parser, token):
    """
    Renders a rich-text field using defined markup.

    Example::

        {% render some_var %}
    """
    bits = token.split_contents()

    if len(bits) != 2:
        raise template.TemplateSyntaxError()

    return RenderNode(bits[1])
def do_render ( parser , token ) : bits = token . split_contents ( ) if len ( bits ) != 2 : raise template . TemplateSyntaxError ( ) return RenderNode ( bits [ 1 ] )
Renders a rich-text field using defined markup.

    Example::

        {% render some_var %}