On 01/12/2003 11:26:34 PM Luke wrote: >Could you give me an example of a context-wide master template in cheetah? I >assume this acts somewhat like my BaseLayout?
Yes. I gutted Page.py, removing any HTML generation. Instead, I have a master Cheetah template that generates all the HTML, including layout using tables. #blocks are defined in any area that a sub-template might need to override. The sub-templates only have to use #def's to override/replace one or more #blocks in the master template. The sub-templates are instantiated within a servlet's constructor, so I get dynamic compilation. They use #extends to inherit their base layout from the master template. For this to work, the master template must be precompiled, as must any intermediate subsite template. I've found that generally, I only use up to about 2 levels of inheritance: master template <-- context template <-- many page templates. ...Edmund. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel