[htmltmpl] problem specifying path to template
                
                Brought to you by:
                
                    samtregar
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Kapoor, N. X <Nis...@xc...> - 2002-07-03 16:19:22
      
     
   | 
Here is the test case. Not sure if I am missing something. Would =
appreciate some feedback.
I am using H::T version 2.5
Thanks
Nishi
----------------- ~/htdocs/wpaa/cgi-bin/testInc.pl ---------------------
#!/usr/bin/perl -w=20
use HTML::Template;
  my $tmpl =3D HTML::Template->new(filename =3D> 'main.tmpl',
                                     path =3D> 'wpaa/test');
  print "Content-Type: text/html\n\n";
  print $tmpl->output;
------------------- Error --------------------------
[~/htdocs/wpaa/cgi-bin] $ perl testInc.pl
HTML::Template->new() : Cannot open included file main.tmpl : file not =
found. at HTML/Template.pm line 1524
        =
HTML::Template::_init_template('HTML::Template=3DHASH(0x2006aa98)') =
called at HTML/Template.pm line 1129
        HTML::Template::_init('HTML::Template=3DHASH(0x2006aa98)') =
called at HTML/Template.pm line 1023
        HTML::Template::new('HTML::Template', 'filename', 'main.tmpl', =
'path', 'wpaa/test') called at testInc.pl line 3
--------------- HTML_TEMPLATE_ROOT is set --------------------
[~/htdocs/wpaa/cgi-bin] $ env | grep HTML
HTML_TEMPLATE_ROOT=3D/vhe/nim1/users/nkapoor/htdocs
-------------------- main.tmpl exists ---------------------
[~/htdocs/wpaa/cgi-bin] ls $HTML_TEMPLATE_ROOT/wpaa/test/main.tmpl
/vhe/nim1/users/nkapoor/htdocs/wpaa/test/main.tmpl
 |