@register.tag('capture')
def do_capture(parser, token):
    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, bits[2])
Set the state of this device to on or off.
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/capture.py/do_capture--crossover with--dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/device/maker.py/Maker.set_state