On Nov 28, 5:16 am, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> Matt Wilson schrieb:
>
> > For any page, it seems like first I pull in the master template, and
> > then that pulls in the sitetemplate file.
>
> > What's the reason for two separate files?  Why not just make a single
> > file and extend that?
>
> The sitetemplate implements functionality and stuff that is common for
> all TurboGears projects, like automatically pulling in javscript or css
> files. The master.html implements the actual layout for your project and
> therefore is part of the quickstart templates. If you have several
> TurboGears apps on your site using a similar layout, you could also use
> a sitetemplate for holding the common layout elements of all the apps on
> your site, so you don't have to adjust these things in several places.

OK, that makes sense.  Thanks for the explanation.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to