Changeset 905
- Timestamp:
- 10/17/05 09:26:20 (3 years ago)
- Files:
-
- django/trunk/docs/templates.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r862 r905 224 224 if you want to add to the contents of a parent block instead of 225 225 completely overriding it. 226 227 Finally, note that you can't define multiple ``{% block %}`` tags with the same 228 name in the same template. This limitation exists because a block tag works in 229 "both" directions. That is, a block tag doesn't just provide a hole to fill -- 230 it also defines the content that fills the hole in the *parent*. If there were 231 two similarly-named ``{% block %}`` tags in a template, that template's parent 232 wouldn't know which one of the blocks' content to use. 226 233 227 234 Using the built-in reference
