@classmethod
    def handle_token(cls, parser, token, name):
        tokens = token.contents.split()
        if len(tokens) > 1 and tokens[1] != 'as':
            raise template.TemplateSyntaxError(
                "First argument in '%s' must be 'as'" % tokens[0])
        if len(tokens) > 1:
            varname = tokens[2]
        else:
            varname = None
        return cls(varname, name)
Class method to parse prefix node and return a Node.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/templatetags/static.py/PrefixNode.handle_token