On Sat, Jul 18, 2009 at 7:08 PM, online<[email protected]> wrote:
> I know i can have common stuff like this in django
>
> <html>
>
> {% include "header.html" %}
>
> <div id = 'content'>
> blah
> </div>
>
> {% include "footer.html" %}
> </html>
>
> but it seems i need to pass data footer.html and header.html every
> time i include these pages?

There are several ways to do this, but when you're asking about
headers and footers, the obvious answer seems to be template
inheritance.

http://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance

Best,
Gabe

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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