raise an TemplateSyntaxError exception with an argument string, "'%s' tag takes at least 2 arguments and the second last argument
raise TemplateSyntaxError ( "'%s' tag takes at least 2 arguments and the " "second last argument must be 'as'" % function_name )