#NEWLINE# def visitMixin( self , mixin ) : #NEWLINE# #INDENT# self . mixing += 1 #NEWLINE# if ( not mixin . call ) : #NEWLINE# #INDENT# self . buffer ( ( '<%%def name="%s(%s)">' % ( self . name , mixin . args ) ) ) #NEWLINE# self . visitBlock ( mixin . block ) #NEWLINE# self . buffer ( '</%def>' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if mixin . block : #NEWLINE# #INDENT# self . buffer ( ( '<%%call expr="%s(%s)">' % ( mixin . name , mixin . args ) ) ) #NEWLINE# self . visitBlock ( mixin . block ) #NEWLINE# self . buffer ( '</%call>' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . buffer ( ( '${%s(%s)}' % ( mixin . name , mixin . args ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . mixing -= 1