> 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



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to