Skip to content

Commit

Permalink
Fixed #28190 -- Clarifed how include/extends treat template names.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanupam authored and timgraham committed Jun 3, 2017
1 parent 0c1355e commit 1f2e4f9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/ref/templates/builtins.txt
Expand Up @@ -215,8 +215,9 @@ This tag can be used in two ways:

See :ref:`template-inheritance` for more information.

A string argument may be a relative path starting with ``./`` or ``../``. For
example, assume the following directory structure::
Normally the template name is relative to the template loader's root directory.
A string argument may also be a relative path starting with ``./`` or ``../``.
For example, assume the following directory structure::

dir1/
template.html
Expand Down Expand Up @@ -674,8 +675,9 @@ This example includes the contents of the template ``"foo/bar.html"``::

{% include "foo/bar.html" %}

A string argument may be a relative path starting with ``./`` or ``../`` as
described in the :ttag:`extends` tag.
Normally the template name is relative to the template loader's root directory.
A string argument may also be a relative path starting with ``./`` or ``../``
as described in the :ttag:`extends` tag.

This example includes the contents of the template whose name is contained in
the variable ``template_name``::
Expand Down

0 comments on commit 1f2e4f9

Please sign in to comment.