On 12/28/05, sergio <[EMAIL PROTECTED]> wrote: > i have adjusted my index.kid so the header looks like the bottom of this > .. but i am still having no luck.. > > i also restarted cherrypy to make sure that wasn't the problem.. > > i am still trying to get wrapped around py:match and what exactly it's > doing.. it seems the further along i get and the more i read the doco, > the more it makes sense.. > > but i am still struggling a little..
The py:match actually needs to be in your master template... py:match is a very interesting tool that doesn't exist in most other template systems. Match rules get checked for each element and allow you to add any kind of markup to a template without the template having to actually *ask* for it (by running a function, for example). The match rules are also inherited from parent templates (via py:extends). That's how this particular case works: you want your CSS to show up everywhere, so you set up a match on <head> in the master template so that the match rule will apply to *all* of the child templates. Anything that appears in the master's head will appear in the final output (unless you py:replace to get rid of it). Kevin

