Skip to content
Myr

Merge pull request #1579 from simonw/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

get_template() uses / separators even on Windows

authored by David Lord · committed by GitHub · parents a8ee081, e8da626 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/jinja2/environment.py+3 added-1 removed
970 unmodified lines
971 """Load a template by name with :attr:`loader` and return a972 :class:`Template`. If the template does not exist a973 :exc:`TemplateNotFound` exception is raised.974975 :param name: Name of the template to load.975 :param name: Name of the template to load. When loading976 templates from the filesystem, "/" is used as the path977 separator, even on Windows.978 :param parent: The name of the parent template importing this979 template. :meth:`join_path` can be used to implement name980 transformations with this.981 :param globals: Extend the environment :attr:`globals` with
682 unmodified lines