One option is something like (in the master):
<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.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---