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 
use HTML::Template;
  my $tmpl = HTML::Template->new(filename => 'main.tmpl',
                                     path => '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=HASH(0x2006aa98)') called at 
HTML/Template.pm line 1129
        HTML::Template::_init('HTML::Template=HASH(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=/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



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to