jinja2.sandbox.ImmutableSandboxedEnvironment.join_path

ImmutableSandboxedEnvironment.join_path(template, parent)

Join a template with the parent. By default all the lookups are relative to the loader root so this method returns the template parameter unchanged, but if the paths should be relative to the parent template, this function can be used to calculate the real template name.

Subclasses may override this method and implement template path joining here.