def RenderToResponse(handler, template_file, template_params):
 template_params = _GetDefaultParams(template_params)
 rendered = _template.render(_GetTemplatePath(template_file), template_params)
 handler.response.out.write(rendered)

def RenderToResponse ( handler , template_file , template_params ) : template_params = _GetDefaultParams ( template_params ) rendered = _template . render ( _GetTemplatePath ( template_file ) , template_params ) handler . response . out . write ( rendered )
render the given template_file using template_vals and write to response .