

@register.tag('capture')
def do_capture(parser, token):
    '\n    Captures content into a context variable.\n    \n    Syntax:\n\n        {% capture as [foo] %}{% endcapture %}\n\n    Usage:\n        \n        {% capture as content %}\n            {% block content %}{% endblock %}\n        {% endcapture %}\n    '
    bits = token.split_contents()
    if (len(bits) != 3):
        raise template.TemplateSyntaxError("'capture' node requires `as (variable name)`.")
    nodelist = parser.parse(('endcapture',))
    parser.delete_first_token()
    return CaptureNode(nodelist, parser[2])

dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/capture.py do_capture/VarMisuse@74/197 `bits`->`parser`