Clifton Royston wrote:
On Wed, Mar 17, 2004 at 11:45:42PM -0500, Cees Hek wrote:

Hi Clifton,

I tried, but can't reproduce this problem. Can you include a small code sample with templates that actually displays this problem.


Simply edit the template I provided as follows;  I'm sorry my initial
explanation was not clear enough:

Your explanation was very clear, I just can't reproduce the problem! I only get that error message if the ../home-template.html doesn't actually exist on the filesystem, which seems like the right thing for it to do. If the include files are there, it works fine for me...


By the way, I get the error message in line 2178 when the included file doens't exist. This leads me to believe we are using different versions of HTML::Template (or you have made some local enhancements?)

Is it possible that you are using a version <= 2.4 and are getting hit by the following bug?

- Bug Fix: nested include path handling was wrong

Cheers,

Cees

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head><title>Community</title></head><body> <div align=center style="height: 100%;"><table width=770 height="100%" border="0" cellspacing="0" cellpadding="0" ><tr><td>
<tmpl_include NAME="../top.html"> </td></tr><tr><td><tmpl_include NAME="../home-template.html"> </td></tr> <tr><td>
<tmpl_include NAME="../bottom.html">
</td></tr></table></div></body></html>


That should generate this error when you do the "new" to load it:

HTML::Template->new() : Cannot open included file ../home-template.html: file not found. at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Template.pm line 2180

On second thought, if it's still unclear, I'll write a tiny example in
the morning complete with the code to invoke it.

-- Clifton




------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to