#NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( not os . path . exists ( self . output_dir ( * args , ** kwargs ) ) ) : #NEWLINE# #INDENT# os . makedirs ( self . output_dir ( * kwargs , ** kwargs ) ) #NEWLINE# #UNINDENT# with codecs . open ( self . output_path ( * args , ** kwargs ) , 'w' , 'utf-8' ) as f : #NEWLINE# #INDENT# f . write ( self . render ( * args , ** kwargs ) )