Daniel Fetchinson wrote: > So the situation is very simple, I have a master.kid containing common > stuff like <head> and some header/footer text that should be the same > on every page and would like to have individual page specific content > in a <div id="content> </div> container.
Why do you want to reinvent the wheel? Your quickstarted project contains already everything you want. > Note that in welcome.kid I don't want to have anything like <head>, > <body>, etc, etc, only the stuff that should be different on that > page, namely the <div id="content> container. This is the thing I > couldn't figure out from the docs. There are good reasons to include head and body sections in your page templates. This allows previewing them as standalone pages in a web browser. Also the title and meta info usually depend on the page. If you really always have the same head, then put this fixed head section in your master.kid template (i.e. without any py:match etc.) and you can leave it out in the page template. Header and footer section already exist in your master.kid template, just modify them according to your needs. Everything inside the body of your page template will automatically appear in a div section inside the body automatically, you don't need to put it in a separate div section in your page template. -- Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

