[EMAIL PROTECTED] wrote:
> How make a certain <div> element in master template
> appear in some slave templates but not others?

You should clarify what you mean with "master template" since this is 
not Kid terminology. I assume you're speaking about TurboGears templates 
where a master template is realized using py:extends.

There are many solutions to this. For instance, your master template 
could look like this:

<body py:match="item.tag == '{http://www.w3.org/1999/xhtml}body'">
     ...
     <div py:if="item.get('id')=='body1'">a certain div</div>
     ...
</body>

Then the certain div would only appear for those templates which have 
set id="body1" in their body tag.

-- Christoph


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to