jinja2.sandbox.ImmutableSandboxedEnvironment.get_or_select_template

ImmutableSandboxedEnvironment.get_or_select_template(template_name_or_list, parent=None, globals=None)

Does a typecheck and dispatches to select_template() if an iterable of template names is given, otherwise to get_template().

New in version 2.3.