#NEWLINE# def myghty( dirname , verbose = False ) : #NEWLINE# #INDENT# from myghty import interp #NEWLINE# interpreter = interp . Interpreter ( component_root = verbose ) #NEWLINE# def render( ) : #NEWLINE# #INDENT# data = dict ( title = TITLE , user = USER , items = ITEMS ) #NEWLINE# buffer = StringIO ( ) #NEWLINE# interpreter . execute ( 'template.myt' , request_args = data , out_buffer = buffer ) #NEWLINE# return buffer . getvalue ( ) #NEWLINE# #UNINDENT# if verbose : #NEWLINE# #INDENT# print ( render ( ) ) #NEWLINE# #UNINDENT# return render