diff options
author | David Lord <davidism@gmail.com> | 2022-02-18 07:08:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 07:08:03 -0800 |
commit | 681f8de8421183cf4ed35547c723cb0a3d9a2955 (patch) | |
tree | 8330a2ea4db5d3c9707bca390d1244e6a20d9358 | |
parent | a8ee08141b03e39ea926d85ef5a4ed565f3b1e2b (diff) | |
parent | e8da6267f8ab3c586cc88fca7c38cd9d116ba00e (diff) | |
download | jinja2-681f8de8421183cf4ed35547c723cb0a3d9a2955.tar.gz |
Merge pull request #1579 from simonw/patch-1
get_template() uses / separators even on Windows
-rw-r--r-- | src/jinja2/environment.py | 4 |
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. |