Is there any more in-depth documentation about how the include tag
works?

I'm developing a site which has a few different modules that I want to
plug into an aggregate "main" page.

Each of the modules I've written into its own template; I now want to
combine them into the main page.

My first thought was to use {% include %}, but after playing with it,
it seems it's not just a simple cut-and-paste tag -- no matter where I
place the include tag in my document( in the <head> or <body>), it
semi-magically takes code in the <head>  and <body> tags of the
included template and places it the corresponding places of the
including template -- although sometimes it will place script tags into
the wrong place (e.g. I have a script in the <head> of included
template A, it now shows up in the <body> of template B)

Is the merging algorithm of {% include %} documented anywhere?

Seems like {% extend %} gives me a little more control, but I can only
inherit from one file -- so that wouldn't work for multiple modules on
the same page.

Any thoughts?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to