Skip to content
Myr

Documented the API changes in get_template and select_template.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 9165d3e · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:jinja2/environment.py+8 added
549 unmodified lines
550 These variables are available in the context at render time.551552 If the template does not exist a :exc:`TemplateNotFound` exception is553 raised.554555 .. versionchanged:: 2.4556 If `name` is a :class:`Template` object it is returned from the557 function unchanged.558 """559 if isinstance(name, Template):560 return name561 if parent is not None:
6 unmodified lines
568 before it fails. If it cannot find any of the templates, it will569 raise a :exc:`TemplatesNotFound` exception.570571 .. versionadded:: 2.3572573 .. versionchanged:: 2.4574 If `names` contains a :class:`Template` object it is returned575 from the function unchanged.576 """577 if not names:578 raise TemplatesNotFound(message=u'Tried to select from an empty list '579 u'of templates.')
367 unmodified lines