#NEWLINE# @ register . tag #NEWLINE# def repeat( parser , token ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( tag_name , block_name ) = token . split_contents ( ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise template . TemplateSyntaxError ( '{0} tag takes only one argument' . format ( token . contents . split ( ) [ 0 ] ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# block_node = parser . _repeated_blocks [ tag_name ] #NEWLINE# #UNINDENT# except ( AttributeError , KeyError ) : #NEWLINE# #INDENT# raise template . TemplateSyntaxError ( 'No repeated block {0} tag was found before the {1} tag' . format ( block_name , tag_name ) ) #NEWLINE# #UNINDENT# return block_node