@classmethod<EOL><INDENT>def for_tag(cls, parser, token, preposition, error_hint):<DEDENT>
tokens = token.split_contents()<EOL>if len(tokens) >= <NUM_LIT:3> and tokens[<NUM_LIT:1>] == preposition:<EOL><INDENT>as_var = cls.get_as_var(tokens)<EOL>tree_alias = parser.compile_filter(tokens[<NUM_LIT:2>])<EOL>return cls(tree_alias, as_var)<EOL><DEDENT>raise template.TemplateSyntaxError(<EOL>'<STR_LIT>' % (tokens[<NUM_LIT:0>], error_hint))<EOL>
Node constructor to be used in tags.