logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

H::Template and CGI::Application: msg#00027

Subject: H::Template and CGI::Application
Hi,

I've been using HTML::Template for a while, but am having a weird problem when
using it in a CGI::Application app.  Basically, when I call
$template->output, the application requests the page from the server twice,
instead of once if I just create and return my own HMTL.

Not sure what is happing here, but can you try the following:

a) run it under plain CGI (not mod_perl)

does it have the same problem?

b) instead of

         return $tmpl->output;

        do

        $tmpl->output;
        return "no output"

does it print  "no output" now or the template + "no output"?


Thilo



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl


<Prev in Thread] Current Thread [Next in Thread>