in reply to Re: Template::Toolkit + CGI header
in thread Template::Toolkit + CGI header

I see. But then how to print the HTML header then? There must be a way to tell the Template::Toolkit to print the HTML header, but how to do that?

Replies are listed 'Best First'.
Re: Re: Re: Template::Toolkit + CGI header
by davorg (Chancellor) on Jun 02, 2003 at 11:12 UTC

    Others have pointed out the solutions where you can either print the header before processing the template, or use the third argument to process to append the template output to the end of $output. But no-one has yet suggested perhaps the simplest solution - add the header to your template.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg