Kirk Strauser schrieb:
> I'm still very new to TurboGears and trying to get my head around Kid
> templates.  Right now I'm playing with the 'master.kid' template that
> the quickstart gives you.  Suppose I want every page on the site to
> have a title that ends with the site's name. 

Here is a solution that requires only a slight change of your master.kid 
template: Simply replace the line

     <title py:replace="''">Your title goes here</title>

with the following:

     <title py:match="item.tag=='{http://www.w3.org/1999/xhtml}title'">
         <span py:replace="item.text">Page Title</span> - My Project
     </title>

-- Christoph

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