Thanks for getting this thread going. Your outline is pretty close to
the way I've been doing things too.
Seeing it in writing got me wondering though if the whole idea of
application templates "extending" the base site is wrong-headed.
Because the application knows nothing about the site it is to be
embedded in, the application writer is second-guessing what base
template it is supposed to extend. Say the 'blog' and 'gallery'
applications need to appear on the same page in different
columns...what then?
Shouldn't we encourage a model where site templates are able to
explicitly "include" application templates, rather than the other way
around? Though I haven't used it, the 'ssi' tag looks like the kind of
thing I have in mind.
Kieran
for the media directory, mnemosyne/media/ should be sufficient.
>On 10/20/05, Sune Kirkeby <...@gmail.com> wrote:
>That's not how applications and templates work. You can't just
>include a template from another application, you would be missing
>the context that the application views provide.
A more "include" oriented solution would be to let sites rather than
applications determine which site base template is being extended by an
application template. I have just discovered the {% extends variable
%} tag, which seems to fit this bill. It should also be encouraged
that application features that don't depend on the request be made
templates tags rather than views.
Kieran
Ok, charge of "overengineering mojo" accepted: I missed that your
proposed set up made it very easy just to override the "base"
application template to achieve the same end.
Kieran