def METHOD_NAME(packages, out_dir, template_file='index.html'):
    curr_dir = str(Path(__file__).parent.absolute().resolve())
    template_loader = jinja2.FileSystemLoader(searchpath=os.path.join(curr_dir, 'templates'))
    template_env = jinja2.Environment(loader=template_loader)
    template = template_env.get_template(template_file)
    output = template.render({'support_packages': packages})
    output_file = os.path.join(out_dir, template_file)
    with open(output_file, "w") as f:
        f.write(output)