From: Simon Willison Date: Thu, 3 Feb 2022 02:05:43 +0000 (-0800) Subject: get_template() uses / separators even on Windows X-Git-Tag: 3.0.x~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8da6267f8ab3c586cc88fca7c38cd9d116ba00e;p=thirdparty%2Fjinja.git get_template() uses / separators even on Windows Refs #1572 --- diff --git a/src/jinja2/environment.py b/src/jinja2/environment.py index 20df7b20..08aaf4b5 100644 --- a/src/jinja2/environment.py +++ b/src/jinja2/environment.py @@ -972,7 +972,9 @@ class Environment: :class:`Template`. If the template does not exist a :exc:`TemplateNotFound` exception is raised. - :param name: Name of the template to load. + :param name: Name of the template to load. When loading + templates from the filesystem, "/" is used as the path + separator, even on Windows. :param parent: The name of the parent template importing this template. :meth:`join_path` can be used to implement name transformations with this.