def _render_file(env, path, dest_path, render_data):
    """jinja render file"""
    content = env.get_template(path.replace('\\', '/')).render(render_data)
    with open(dest_path, mode='w', encoding='utf-8') as f:
        f.write(content)
