Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by benn (Vicar)
on Aug 13, 2003 at 13:30 UTC ( [id://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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found