I tried, but can't reproduce this problem. Can you include a small code sample with templates that actually displays this problem.
Also, it might help to tells us which version of HTML::Template and which perl you are using (from the error message it looks like you are using perl 5.6.1, but I can't guess what version of HTML::Template).
I tested using HTML::Template 2.6 and perl 5.8.3 and didn't see a problem.
Cheers,
Cees
Clifton Royston wrote:
I probably won't be on this list too long, but wanted to pop in and report a bug. Apparently if you have two or more <tmpl_include> tag on a line, the second one always bombs. Here's a fairly simplified test file for it:
<!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>
The three included templates in question exist in the right relative location to the template. This template is processed properly. If the first & second or second & third <tmpl_include> tags are simply joined onto the same line, it bombs with this error:
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
I ran into this immediately when I tried using the htmlclean script
(from HTML::Clean) to try to condense all our templates. This is
however the first bug I've run into in 6 to 8 months of working with
HTML::Template to build a web GUI.
-- 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