[Zope] Decorator pattern

Chris Withers chrisw@nipltd.com
Wed, 17 Jan 2001 23:41:42 -0000


> I was thinking that I could change <standard_html_header> to something
> like:
> <HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY <dtml-var body_tag_guts>
>
> Then each level would define body_tag_guts as a call to its parent's
> body_tag_guts and tack on its stuff... but I don't know how to do that
> <grin>

Try this, if body_tag_guts is a DTML method:
<dtml-var "aq_parent.body_tag_guts()"><!--current level body_tag_guts stuff
here -->

cheers,

Chris