> On Tue, Nov 09, 2004 at 02:25:44PM -0600, Brad Cathey wrote:
>> Hello folks,
>>
>> I've been using HTML::Template a thousand times over the past year and never
>> had a page just not output.
>>
>> http://www.cicsnorthtown.org/cgi-bin/facultyadmin.pl?funct=menu
>>
>> Check the source code and note it just renders "<html><body></body></html>"
>>
>> If I try: http://www.cicsnorthtown.org/admin/menu.tmpl the page looks fine.
>>
>> or, in my Perl if I substitute at different file, like "test.tmpl" it works
>> great.
>>
>>
>> Perl:
>>
>> use HTML::Template;
>>
>> my $template;
>>
>> $template = HTML::Template->new(filename => '../admin/menu.tmpl');
>> $template -> param(facultylist=> $teacherdata );
>>
>> print "Content-type: text/html\n\n";
>> print $template->output();
>>
>> H::T is not returning any errors. Could it be a corrupt .tmpl file? If so,
>> how would I know?
>
> My guess is you are getting some kind of fatal Perl error in the one
> invocation instance. Try adding:
>
> use CGI;
> use CGI::Carp 'fatalsToBrowser';
>
> at the head of the program and see if you get any output with this.
> (This should send your Perl error messages to the browser, unless
> things are so messed up that Perl itself can't load.)
> -- Clifton
Thanks Clifton, but I have all that debugging stuff in place. In fact, when
I use Data::Dumper I it renders the page along with the hash.
I'd do a hex dump, but I have no idea what I'm looking for. Maybe I should
start rebuilding the .tmpl file line by line and see where it breaks.
BRad
|