[htmltmpl] Nesting TMPL tags
Brought to you by:
samtregar
From: Rajesh_K <Rajesh_K@Satyam.com> - 2005-07-12 09:38:07
|
Hi, =20 I want to TMPL_INCLUDE files, the problem is that the file I want to include itself is variable. I want a construct of the sort=20 <TMPL_INCLUDE NAME=3D"<TMPL_VAR NAME=3Dfile_name>"> =20 Obviously, in my PERL script, I have a=20 $template->param(file_name=3D>$filename); =20 While the manual speaks of=20 <IMG SRC=3D"<TMPL_VAR NAME=3Dimage_name>">, there is no such feature provided for what I have stated above. Further, this also throws up a syntax error. Apache error log is given below. =20 [Tue Jul 12 01:29:57 2005] [error] [client 127.0.0.1] Premature end of script headers: yes.pl, referer: http://localhost/cgi-bin/yes.pl?username=3Dbawa&password=3Dbawa&rm=3Dlogi= n_val idate [Tue Jul 12 01:29:57 2005] [error] [client 127.0.0.1] Error executing run mode 'admin_add_user': HTML::Template->new() : Syntax error in <TMPL_*> tag at F:\Program Files\Apache Group\Apache2\htdocs\yes\admin_tmpl.html : 10. at C:/Perl/site/lib/HTML/Template.pm line 2288., referer: http://localhost/cgi-bin/yes.pl?username=3Dbawa&password=3Dbawa&rm=3Dlogi= n_val idate [Tue Jul 12 01:29:57 2005] [error] [client 127.0.0.1] at F:/Program Files/Apache Group/Apache2/cgi-bin/yes.pl line 4, referer: http://localhost/cgi-bin/yes.pl?username=3Dbawa&password=3Dbawa&rm=3Dlogi= n_val idate =20 Regards, Rajesh DISCLAIMER: This email (including any attachments) is intended for the sole use of = the intended recipient/s and may contain material that is CONFIDENTIAL = AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or = copying or distribution or forwarding of any or all of the contents in = this message is STRICTLY PROHIBITED. If you are not the intended = recipient, please contact the sender by email and delete all copies; = your cooperation in this regard is appreciated. |