Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

by benn (Vicar)
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.

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 :-)


    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://283542]
[stevieb]: interestingly enough, someone else got my Devel::Examine:: Subs distribution for their PRC, and I applaud the change. This dist is extremely complicated and mostly obfu, but the person doing it understood PPI enough to change...
[stevieb]: ...something I had overlooked in the extreme depths of the core functionality. After merging, then a couple of extra tweaks, I still have 100% test coverage. Yay for people who write tests!

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-01-24 01:20 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (199 votes). Check out past polls.