def render_template(env, html_path, template_filename, context):
template = env.get_template(template_filename)<EOL>rendered_html = template.render(**context)  <EOL>html_path.write_text(rendered_html, encoding='<STR_LIT:utf-8>')<EOL>
Render a template file into the given output location.