@classmethod
    def handle_token(cls, parser, token):
        bits = token.split_contents()
        if len(bits) == 3 and bits[1] == "as":
            return cls(bits[2])
        else:
            raise template.TemplateSyntaxError("%r takes 'as var'" % bits[0])
dataset/ETHPy150Open pinax/symposion/symposion/sponsorship/templatetags/sponsorship_tags.py/SponsorLevelNode.handle_token/original