summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Willison <swillison@gmail.com>2022-02-02 18:05:43 -0800
committerDavid Lord <davidism@gmail.com>2022-02-18 07:00:52 -0800
commite8da6267f8ab3c586cc88fca7c38cd9d116ba00e (patch)
tree8330a2ea4db5d3c9707bca390d1244e6a20d9358
parenta8ee08141b03e39ea926d85ef5a4ed565f3b1e2b (diff)
downloadjinja2-e8da6267f8ab3c586cc88fca7c38cd9d116ba00e.tar.gz
get_template() uses / separators even on Windows
Refs #1572
-rw-r--r--src/jinja2/environment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jinja2/environment.py b/src/jinja2/environment.py
index 20df7b2..08aaf4b 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.