Is there someway to curcumvent this?
sub cgiapp_prerun {
my $self = shift;
my $header = $self->load_tmpl('header.html');
$header->param(javascript => $self->cfg('javascript'));
$header->param(script => $self->cfg('script'));
$header->param(images => $self->cfg('images'));
...
$self->{mheader} = $header; # nope a hash ref and
# $header->output sends headers that I dont want
# Content-Type: text/html; charset=ISO-8859-1
my $footer = $self->load_tmpl('footer.html');
...
$self->{mfooter} = $footer;
}
... somewhere
my $body = $self->load_tmpl('somepage.html');
$body->param(header => $self->{mheader});
$body->param(footer => $self->{mfooter});
output is
some html
Content-Type: text/html; charset=ISO-8859-1
some html
Content-Type: text/html; charset=ISO-8859-1
some html
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.