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
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
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.
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