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

-- 
          Clifton Royston  --  [EMAIL PROTECTED] 
         Tiki Technologies Lead Programmer/Software Architect
Did you ever fly a kite in bed?  Did you ever walk with ten cats on your head?
  Did you ever milk this kind of cow?  Well we can do it.  We know how.
If you never did, you should.  These things are fun, and fun is good.
                                                                 -- Dr. Seuss


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