from jinja2 import Environment, FileSystemLoader


def get_template(templates_dir, template_name='template.html'):
    """
    Given a `templates_dir` template directory, load and return the template
    file for the `template_name` file found in that directory.
    """
    env = Environment(loader=FileSystemLoader(templates_dir))
    template = env.get_template(template_name)
    return template