Added note to docs/templates.txt about {% extends %} needing to be the first tag in the template. Thanks, Chris Chamberlin

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-11 02:59:48 +00:00
parent 30c72faa9c
commit f2aa710f13
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ is possible and, indeed, quite useful.
Here are some tips for working with inheritance:
* If you use ``{% extends %}`` in a template, it must be the first template
tag in that template.
* More ``{% block %}`` tags in your base templates are better. Remember,
child templates don't have to define all parent blocks, so you can fill
in reasonable defaults in a number of blocks, then only define the ones