[Zope] Decorator pattern

2001-01-17 Thread Tom Jenkins
Hello folks, I have a situation where as I go down my hierarchy I need to modify the BODY tag. Assume this structure: / /level1 /level1/level2 /level1/level2/level3 At level 1 the BODY tag would be like: BODY BGCOLOR="#00" and at level 2 the BODY tag would have the color setting at

Re: [Zope] Decorator pattern

2001-01-17 Thread Chris Withers
I was thinking that I could change standard_html_header to something like: HTMLHEADTITLEblah/TITLE/HEADBODY 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