def render_template_file(template, context=None):
 assert isinstance(context, Mapping)
 template = get_template(template)
 return template.render(context)

def render_template_file ( template , context = None ) : assert isinstance ( context , Mapping ) template = get_template ( template ) return template . render ( context )
render a template to unicode .