Would the "layout templates" feature do the job for you?

http://lesscode.org/projects/kid/ticket/62

(Keeping in mind that you should be able to py:strip or
py:replace="''" elements on your child element that you don't want to
make it into the final output)

Kevin

> 4. In a perfect world, I want the following:
>
> - master.kid -
> > <?xml version="1.0" encoding="utf-8"?>
> > <html xmlns="http://www.w3.org/1999/xhtml"; 
> > xmlns:py="http://purl.org/kid/ns#";>
> >   <head>
> >     <title></title>
> >   </head>
> >   <body>
> >     <div id="required-header">... site header ...</div>
> >     <div py:slot="top">... default top slot ...</div>
> >     <div id="content-wrapper">
> >       <div py:slot="content" /><!-- no default - if not filled, remove -->
> >       <div py:slot="right">... default right slot ...</div>
> >       <div py:slot="left">... default left slot ...</div>
> >     </div>
> >     <div id="required-footer">... site footer ...</div>
> >   </body>
> > </html>
>
> - page.kid -
> > <?xml version="1.0" encoding="utf-8"?>
> > <html xmlns="http://www.w3.org/1999/xhtml"; 
> > xmlns:py="http://purl.org/kid/ns#";
> >     py:extends="'master.kid'">
> >   <body>
> >     <div py:fill="content">
> >       ...
> >     </div>
> >   </body>
> > </html>
>
> Does anyone know how to do that last item using existing Kid technology
> (i.e. crafty use of py:match?)  As py:match stops on the first hit
> (i.e. if <body> matches, nothing within is matched) this would seem
> problematical.
>
> Are there other solutions I could use to provide this level of
> flexability?  I.e. another templating system embedding Kid?
>
>


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to