14 Jan
2003
14 Jan
'03
noon
Bjorn Stabell wrote:
I would like
<dtml-var content> <dtml-with content>... <dtml-if content>
to call different functions. The first renders the object, the second returns a mapping of the content's attributes/properties, the third checks for "trueness" of the content. Rendering a content could be an expensive operation and I don't want to do it when doing dtml-with and dtml-if.
That kind of implicit weirdage is not something python encourages. <dtml-var content> ...should render <dtml-with "content.properties"> <dtml-if "content.true()"> ...is much better. cheers, Chris