(parser, token)
return AssignNode(bits[1], value)
Assign an expression to a variable in the current context.
	
	Syntax::
		{% assign [name] [value] %}
	Example::
		{% assign list entry.get_related %}
Assign an expression to a variable in the current context.
	
	Syntax::
		{% assign [name] [value] %}
	Example::
		{% assign list entry.get_related %}
Assign an expression to a variable in the current context . Syntax :: { % assign [ name ] [ value ] % } Example :: { % assign list entry . get_related % }
def do_assign(parser, token):
	"""
	Assign an expression to a variable in the current context.
	
	Syntax::
		{% assign [name] [value] %}
	Example::
		{% assign list entry.get_related %}
		
	"""
	bits = token.contents.split()
	if len(bits) != 3:
		raise template.TemplateSyntaxError("'%s' tag takes two arguments" % bits[0])
	value = parser.compile_filter(bits[2])
	return AssignNode(bits[1], value)
def do_assign ( parser , token ) : bits = token . contents . split ( ) if len ( bits ) != 3 : raise template . TemplateSyntaxError ( "'%s' tag takes two arguments" % bits [ 0 ] ) value = parser . compile_filter ( bits [ 2 ] ) return AssignNode ( bits [ 1 ] , value )