mirror of https://github.com/django/django.git
Small clarification to docs/templates.txt change from [3465]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3473 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1707f79b74
commit
8753a072f7
|
@ -363,14 +363,15 @@ extends
|
||||||
|
|
||||||
Signal that this template extends a parent template.
|
Signal that this template extends a parent template.
|
||||||
|
|
||||||
This tag may be used in two ways:
|
This tag can be used in two ways:
|
||||||
|
|
||||||
* ``{% extends "base.html" %}`` (with quotes) uses the literal value
|
* ``{% extends "base.html" %}`` (with quotes) uses the literal value
|
||||||
"base.html" as the name of the parent template to extend
|
``"base.html"`` as the name of the parent template to extend.
|
||||||
|
|
||||||
* ``{% extends variable %}`` uses the value of ``variable`` as either the
|
* ``{% extends variable %}`` uses the value of ``variable``. If the variable
|
||||||
name of the parent template to extend (if it evaluates to a string,) or
|
evaluates to a string, Django will use that string as the name of the
|
||||||
as the parent tempate itelf (if it evaluates to a Template object).
|
parent template. If the variable evaluates to a ``Template`` object,
|
||||||
|
Django will use that object as the parent template.
|
||||||
|
|
||||||
See `Template inheritance`_ for more information.
|
See `Template inheritance`_ for more information.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue