#NEWLINE# def visitMixin( self , mixin ) : #NEWLINE# #INDENT# self . mixing += 1 #NEWLINE# if ( not mixin . call ) : #NEWLINE# #INDENT# self . buffer ( ( '{%% macro %s(%s) %%}' % ( mixin . name , mixin . args ) ) ) #NEWLINE# self . visitBlock ( mixin . block ) #NEWLINE# self . buffer ( '{% endmacro %}' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if mixin . block : #NEWLINE# #INDENT# if ( self . mixing > 1 ) : #NEWLINE# #INDENT# self . buffer ( ( '{%% set __pyjade_caller_%d=caller %%}' % self . mixing ) ) #NEWLINE# #UNINDENT# self . buffer ( ( '{%% call %s(%s) %%}' % ( mixin . name , mixin . args ) ) ) #NEWLINE# self . visitBlock ( mixin . block ) #NEWLINE# self . buffer ( '{% endcall %}' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . buffer ( ( '{{%s(%s)}}' % ( mixin . name , mixin . args ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . mixing -= 1