Specifically, I don't want a certain menu to show up in 2 slave
templates.
I'm guessing conditional code is way to go but I don't know if
conditional code
should go in master or slave template.
Any help greatly appreciated.
Chris
<div py:strip="value_of('hide_div')">I won't show up if hide_div is
true.</div>
Then have the controller add {'hide_div':True} to the returned dict in
cases where you don't want to show the content.
Another option is to use css {display:none} in the slave to always hide
the element. That still puts the content in the HTML source, and might
not work if the data is sensitive (or in browsers that don't handle
CSS). On the plus side, it's easy to implement.
master:
<span py:match="item.tag == 'menu'"> <the menu> </span>
slave:
<menu />
--
cheers
elvelind grandin