in reply to Re: Re: Web page template for an HTTP daemon script
in thread Web page template for an HTTP daemon script

Ermmm - you don't need Apache or CGI to use either of the modules I mentioned - the Template Toolkit particularily is designed for / used in all sorts of applications, most of which are nothing to do with CGI.

From the 'Template' synopsis...

my $vars = { var1 => $value, var2 => \%hash, var3 => \@list, var4 => \&code, var5 => $object, }; my $input = 'myfile.html'; $template->process($input, $vars) || die $template->error();

Cheers, Ben.

Replies are listed 'Best First'.
Re: Re: Re: Re: Web page template for an HTTP daemon script
by bronto (Priest) on Aug 13, 2003 at 14:53 UTC

    Put the blame on Sam Tregar, then :-)
    as you can see, HTML::Template docs say:

    HTML::Template - Perl module to use HTML Templates from CGI scripts

    Ok, ok; next time I'll continue to read the documents after the NAME section :-)

    Ciao!
    --bronto


    The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
    --John M. Dlugosz