From: Armin Ronacher Date: Tue, 16 Feb 2010 16:37:17 +0000 (+0100) Subject: Documented the API changes in get_template and select_template. X-Git-Tag: 2.4~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c63513055c6f4c2c28d147548bc1957b627d68;p=thirdparty%2Fjinja.git Documented the API changes in get_template and select_template. --HG-- branch : trunk --- diff --git a/jinja2/environment.py b/jinja2/environment.py index 4e9e4fd0..7c4a5a93 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -551,6 +551,10 @@ class Environment(object): If the template does not exist a :exc:`TemplateNotFound` exception is raised. + + .. versionchanged:: 2.4 + If `name` is a :class:`Template` object it is returned from the + function unchanged. """ if isinstance(name, Template): return name @@ -565,6 +569,10 @@ class Environment(object): raise a :exc:`TemplatesNotFound` exception. .. versionadded:: 2.3 + + .. versionchanged:: 2.4 + If `names` contains a :class:`Template` object it is returned + from the function unchanged. """ if not names: raise TemplatesNotFound(message=u'Tried to select from an empty list '