#NEWLINE# def _render_template( self , template , data = None ) : #NEWLINE# #INDENT# if ( self is None ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# t = self . loader . load ( template ) #NEWLINE# return t . generate ( data = data ) . render ( 'xhtml' , doctype = 'xhtml' )