On Sun, Feb 24, 2002 at 06:35:22PM -0000, Phil Taylor wrote: >I want to define a master template which governs the overall appearance of my pages, >for example this could be a page with a common header and a "breaker" column down the >left and right side of the page. This will allow me to change the appearance of my >whole site by simply editing one template. > >I then want to define the middle part of the page with other templates and then use >HTML::Template to pull it all together.
What I have done is, on each template within the site, <tmpl_include> the header/sidebar template. This seems to work quite well, particularly given the flexibility of H::T; the arrangement is something like: (in page template) <html><head> (page-specific header stuff) <tmpl_include name=top.tmpl> (we're now in the body text) ... And top.tmpl has: (generic header stuff) </head> <body bgcolor=blahblahblah> (page header, sidebar, etc.) so that I can (for example) change the body colour for the site with a single edit. Obviously one could do the same thing with a bottom.tmpl to go after the end of text on the page (and which could therefore carry a right-hand column). Judicious use of table elements makes this all quite easy. Roger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
