Running Django v0.96.

Want to check to see if this behavior is normal.  I have a base template
that uses {% load %}.  I have another template that extends the base
template.  The {% load %} tag doesn't seem to carry into the extended
template.  In other words, it looks like I have to use {% load %} in
every single extended template, not just declare it once in the base.
To give a concrete example:

--base.html--

{% load mytags %}

{% mytitle "My Title Tag" %}

--base.html--

--derived.html--

{% extends "base.html" %}

{% mytitle "My Title Tag in the Derived" %}

--derived.html--

Using 'base.html' calls 'mytitle' just fine.  Using 'derived.html' does
not.

On a related note, the docs say:

        If you use {% extends %} in a template, it must be the first
        template tag in that template. Template inheritance won’t work,
        otherwise.

This isn't true unless {% load %} doesn't count as a template tag.  My
derived templates work if I put {% extends %} first or {% load %} first.
-- 
Adam Stein @ Xerox Corporation       Email: [EMAIL PROTECTED]
                                            
Disclaimer: All views expressed             
here have been proved to be my own.  [http://www.csh.rit.edu/~adam/]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to