@register.tag(name="uni_form")
def do_uni_form(parser, token):
    """
    You need to pass in at least the form/formset object, and can also pass in the
    optional `uni_form.helpers.FormHelper` object. 

    helper (optional): A `uni_form.helpers.FormHelper` object.

    Usage::
    
        {% include uni_form_tags %}

        {% uni_form my-form my_helper %}

    """
    token = token.split_contents()
    form = token.pop(1)

    try:
        helper = token.pop(1)
    except __HOLE__:
        helper = None

    return UniFormNode(form, helper)
dataset/ETHPy150Open pydanny/django-uni-form/uni_form/templatetags/uni_form_tags.py/do_uni_form