Kaydet (Commit) 1f2e4f9c authored tarafından Anupam's avatar Anupam Kaydeden (comit) Tim Graham

Fixed #28190 -- Clarifed how include/extends treat template names.

üst 0c1355e9
...@@ -215,8 +215,9 @@ This tag can be used in two ways: ...@@ -215,8 +215,9 @@ This tag can be used in two ways:
See :ref:`template-inheritance` for more information. See :ref:`template-inheritance` for more information.
A string argument may be a relative path starting with ``./`` or ``../``. For Normally the template name is relative to the template loader's root directory.
example, assume the following directory structure:: A string argument may also be a relative path starting with ``./`` or ``../``.
For example, assume the following directory structure::
dir1/ dir1/
template.html template.html
...@@ -674,8 +675,9 @@ This example includes the contents of the template ``"foo/bar.html"``:: ...@@ -674,8 +675,9 @@ This example includes the contents of the template ``"foo/bar.html"``::
{% include "foo/bar.html" %} {% include "foo/bar.html" %}
A string argument may be a relative path starting with ``./`` or ``../`` as Normally the template name is relative to the template loader's root directory.
described in the :ttag:`extends` tag. 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 This example includes the contents of the template whose name is contained in
the variable ``template_name``:: the variable ``template_name``::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment