code: def render_template(env, html_path, template_filename, context):
      
      template = env.get_template(template_filename)
      rendered_html = template.render(**context)  # pylint: disable=no-member
      html_path.write_text(rendered_html, encoding='utf-8')
docs: Render a template file into the given output location.