import jinja2


def render_html(tables):
    """Assemble an HTML page with cards from the word tables."""
    #env = Environment(autoescape=True)
    #template = env.from_string(TEMPLATE)
    templateLoader = jinja2.FileSystemLoader(searchpath="./")
    templateEnv = jinja2.Environment(loader=templateLoader, autoescape=True)
    TEMPLATE_FILE = "template.html"
    template = templateEnv.get_template(TEMPLATE_FILE)
    return template.render(tables=tables)