Sorry, I figured it out. Thanks though. Thank you, Lew A GWI Operations
On Thu, 6 Jun 2002, Lew A wrote: > Hello, > > I've been working on learning how to use HTML::Template for the day. And > I've run into a problem. I can't get nest <TMPL_LOOP>'s to work properly. > I don't know if it's something I'm doing wrong, or if it's something that > can even be done. According to the pages I've been looking at on > http://html-template.sourceforge.net/ it should be able to be done. > > Also, I am using perl 5.005_03 on BSDi. > HTML::Template 2.5 (just downloaded and installed today). > Apache: 1.3.12 > > Attached are the two documents I'm working with. > > And here is a snippet of my code: > > tmpl file: > <TMPL_LOOP NAME="cal_week"> > <tr> > > <TMPL_LOOP NAME="cal_day"> > <td width='90' height='90' align='right' valign='top'> > <TMPL_VAR NAME="day"> > </td> > </TMPL_LOOP> > > </tr> > </TMPL_LOOP> > > .pl file: > my @week = {(week => 1), (week => 2)}; > > $tmpl->param(cal_week => \@week); > > my @day = {(day => 1), (day => 2)}; > > $tmpl->param(cal_day => \@day); > > print "Content-type: text/html\n\n"; > print $tmpl->output; > > error_log: HTML::Template : Attempt to set nonexistent parameter 'cal_day' > - this parameter name doesn't match any declarations in the template file > : (die_on_bad_params => 1) at > /usr/local/apache/htdocs/destiny-test.gwi/sys/forms/calendar/test.pl line > 19 [Thu Jun 6 14:40:28 2002] [error] [client 192.168.1.70] Premature end > of script headers: > /usr/local/apache/htdocs/destiny-test.gwi/sys/forms/calendar/test.pl > > Thank you, > Lew A > GWI Operations > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
