On Thu, Nov 07, 2002 at 01:45:45PM -0500, Sam Tregar wrote:
> Did you run "make test" when you installed the module?  Did the tests
> pass?  There are tests in the test suite to test this behavior...

Yes, make test passed flawlessly.

But, on further examination, the problem occurs only in the
following scenario (which is a little different from what I
said in my previous email)

template_path : $top_dir
start with : "dir/file.tpl" # i.e. $top_dir/dir/file.tpl

Inside file.tpl : "<TMPL_INCLUDE NAME=top_file.tpl>" where
we expect top_file.tpl to be implicitly picked from $top_dir
and NOT $top_dir/dir

Further inside file.tpl : "<TMPL_INCLUDE NAME=nested.tpl>"
Where nested.tpl is in $top_dir/dir.

This is where HTML::Template croaks. The $fstack[-1] index
does point to the right filepath at this point.
 
> Can you show me a short test script and test template set
> that demonstrate the behavior?

Ok -- a messy script is attached :)

Ajit

Attachment: h.pl
Description: Perl program

Reply via email to