'Lazy render of a QWeb template.
The actual rendering of the given template will occur at then end of
the dispatching. Meanwhile, the template and/or qcontext can be
altered or even replaced by a static response.
:param basestring template: template to render
:param dict qcontext: Rendering context to use
:param bool lazy: whether the template rendering should be deferred
until the last possible moment
:param kw: forwarded to werkzeug\'s Response object'

def render(self, template, qcontext=None, lazy=True, **kw):

    response = Response(template=template, qcontext=qcontext, **kw)
    if (not lazy):
        return response.render()
    return response
