import jinja2


def render_template(env: jinja2.Environment, template: str, **context):
    """Render the given template with an additional context being made available in it."""
    return env.get_template(template).render(**context)