from jinja2 import Environment, DictLoader, Template, FileSystemLoader
file_loader = FileSystemLoader(['templates', 'includes'])
env = Environment(loader=file_loader)
template = env.get_template('years.html')
years_list = [1992, 1993, 1994]
out_render = template.render(years = years_list)
print(out_render)
{% extends 'template.html' %}