David Johnston
2011-11-03 17:05:01 UTC
I am just trying to get the bigger picture when it comes to chaining
templates together. There is include and rebase to do this. It seems
to me that these do very similar things. Are both really needed?
With rebase, it appears that you can wrap your current template in
another template and you could do this indefinitely, building up a
larger and larger chain like those Russian nesting dolls.
With include, you start with the parent template and "include" a child
template. That child template could have it's own includes etc. So it
seems you are more or less doing the same thing but starting at the
other end; the outside working in.
So, is there really a need for both of these?
Also, I wonder what happens if (perhaps by mistake) you include a
template that itself has a rebase in it.
Dave
templates together. There is include and rebase to do this. It seems
to me that these do very similar things. Are both really needed?
With rebase, it appears that you can wrap your current template in
another template and you could do this indefinitely, building up a
larger and larger chain like those Russian nesting dolls.
With include, you start with the parent template and "include" a child
template. That child template could have it's own includes etc. So it
seems you are more or less doing the same thing but starting at the
other end; the outside working in.
So, is there really a need for both of these?
Also, I wonder what happens if (perhaps by mistake) you include a
template that itself has a rebase in it.
Dave