def _render(env, template_str, data):
    """Uses the environment to render the provided template string using the provided data"""
    template = env.from_string(template_str)
    return template.render(data)