Ticket #6274: clarify-extends-behavior.diff

File clarify-extends-behavior.diff, 721 bytes (added by Trevor Caira, 16 years ago)
  • docs/templates.txt

     
    267267
    268268Here are some tips for working with inheritance:
    269269
    270     * If you use ``{% extends %}`` in a template, it must be the first template
    271       tag in that template. Template inheritance won't work, otherwise.
     270    * If you use ``{% extends %}`` in a template, it must occur at the
     271      very beginning of that template. Template inheritance won't work,
     272      otherwise.
    272273
    273274    * More ``{% block %}`` tags in your base templates are better. Remember,
    274275      child templates don't have to define all parent blocks, so you can fill
Back to Top