Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Web page template for an HTTP daemon script

by benn (Priest)
on Aug 13, 2003 at 13:30 UTC ( #283542=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Re: Re: Web page template for an HTTP daemon script
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://283542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-23 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (241 votes), past polls