Re: [htmltmpl] Automatically wrapping templates

2002-11-14 Thread Carlos Ramirez
You can also wrap your common screen components header, footer, menu, etc.) into a simple class: # Screen/Common.pm # sub header { my ($class,$title) = @_; my $t = HTML::Template->(filename => 'header.t'); ... return $t->output; } sub menu { my ($c

Re: [htmltmpl] Automatically wrapping templates

2002-11-13 Thread Philip S Tellis
Sometime Today, Drew Taylor assembled some asciibets to say: > I would like to automatically wrap a template in a header and footer > without having to specify for > every page. In TT I can use the PRE_PROCESS and POST_PROCESS > options, which specify a template that is pre/appended to the Use t

Re: [htmltmpl] Automatically wrapping templates

2002-11-13 Thread Douglas Kirkland
On Wednesday 13 November 2002 08:35 am, Drew Taylor wrote: > I would like to automatically wrap a template in a header and footer > without having to specify for every > page. You should checkout the perl module sandwich for apache. I have not used this module, but I think it is what you want.

[htmltmpl] Automatically wrapping templates

2002-11-13 Thread Drew Taylor
Hi, I would like to automatically wrap a template in a header and footer without having to specify for every page. In TT I can use the PRE_PROCESS and POST_PROCESS options, which specify a template that is pre/appended to the specified template. Is there an easy way to automatically do this i