'Render given template.
This method must be run in the event loop.'

def async_render(self, variables=None, **kwargs):

    self._ensure_compiled()
    if (variables is not None):
        kwargs.update(variables)
    try:
        return self._compiled.render(kwargs).strip()
    except jinja2.TemplateError as err:
        raise TemplateError(err)
