from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader(''))
t = env.get_template('t2.djhtml')
print(t.render({'foo': 122}))
Use blocks from included files for parent in jinja2