kerinin wrote:
 > It seems that Kid is unable to handle nested layout templates.  Here's
 > what I'm trying to do:

There were two mistakes in your example:
py:layout="'sectiont.kid'" instead of py:layout="'section.kid'"
and
py:layout="'master.kid'" instead of py:extends="'master.kid'"

But I assume that were only typos, so you actually wanted to do this:

  sitetemplate.kid
    ^^^extends^^^
     master.kid
    ^^^extends^^^
     section.kid
    ^^^layout^^^
   subsection.kid

I could reproduce the problem you described with this setup and will 
have a look whether it can be fixed in Kid.

As an aside, instead of this:

   <content>Default Content Here</content>
   <div py:match="item.tag == 'content'">
        Project Dashboard Content Here
   </div>

I suggest doing this:

   <div id="content">Default Content Here</div>
   <div py:match="item.get('id') == 'content'">
        Subsection content
   </div>

This avoids non-HTML tags in the templates.

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

Reply via email to