diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-07-28 02:25:46 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-07-28 02:25:46 +0000 |
| commit | 8753a072f700abcc2f2626982b04c9ab53fb8977 (patch) | |
| tree | afa8925de437d52c2694c7e658600175f1383e94 /docs | |
| parent | 1707f79b74b32ad20ee36e03818688ee4dc02d21 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index d33575f7fd..e925e43ee2 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -363,14 +363,15 @@ extends 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 - "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 - name of the parent template to extend (if it evaluates to a string,) or - as the parent tempate itelf (if it evaluates to a Template object). + * ``{% extends variable %}`` uses the value of ``variable``. If the variable + evaluates to a string, Django will use that string as the name of the + 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. |
