]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
get_template() uses / separators even on Windows 1579/head
authorSimon Willison <swillison@gmail.com>
Thu, 3 Feb 2022 02:05:43 +0000 (18:05 -0800)
committerDavid Lord <davidism@gmail.com>
Fri, 18 Feb 2022 15:00:52 +0000 (07:00 -0800)
Refs #1572

src/jinja2/environment.py

index 20df7b20e2ea1458c5d7c65b833bb4efa7041490..08aaf4b5e92a15f404338e38574a92ba809265da 100644 (file)
@@ -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.