def view_template(template_name):
    def template_renderer(context, **kwargs):
        return context.render_template(template_name, **kwargs)
    return template_renderer
Construct a view that renders the given template when called
dataset/ETHPy150Open akheron/stango/tests/__init__.py/view_template