jinja2.sandbox.ImmutableSandboxedEnvironment.select_template¶
-
ImmutableSandboxedEnvironment.
select_template
(names, parent=None, globals=None)¶ Works like
get_template()
but tries a number of templates before it fails. If it cannot find any of the templates, it will raise aTemplatesNotFound
exception.New in version 2.3.
Changed in version 2.4: If names contains a
Template
object it is returned from the function unchanged.