@classmethod
    def get_as_var(cls, tokens):
        as_var = None
        if tokens[-2] == 'as':
            as_var = tokens[-1]
            tokens[-2:] = []
        return as_var
Returns context variable from `as` template tag clause if any.
dataset/ETHPy150Open idlesign/django-sitetree/sitetree/templatetags/sitetree.py/SimpleNode.get_as_var