Does Jinja2 support template-relative paths e.g. %(here)s/other/template.html, to include other templates relative to the current template\'s place in the files
Just to add to Will McCutchen's answer,
You can have multiple directories in your loader. It then searches in each of the directories (in order) until it finds the template.
for example, if you wanted to have "sidebar.html" instead of "/includes/sidebar.html" then have:
loader=jinja2.FileSystemLoader(
[os.path.join(os.path.dirname(__file__),"templates/includes"),
os.path.join(os.path.dirname(__file__),"templates")])
instead of
loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__),"templates"))