Skip to content

TEMPLATES_PATH should be set according to the theme

So we can use the env object like this:

env.get_template("index.html.j2")

The included templates can be called using a path relative to the current template.

See https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.FileSystemLoader to load different template dirs in the same environment.