Re: [htmltmpl] Comparing H::T:Expr variables
Brought to you by:
samtregar
From: Mathew R. <mat...@re...> - 2003-11-20 03:42:45
|
The syntax that you are using is correct. I suspect that there is = another error some where. What happens if you use the 'strict =3D> 0' option to HTML::Template? =20 Mat > Yes I did forget the " before the EXPR but it still fails with: >=20 > <TMPL_IF EXPR=3D"MODEL_COMP eq MODEL_NAME"> >=20 > With the following error: >=20 > HTML::Template->new() : Syntax error in <TMPL_*> tag at index.tmpl : = 14. > at /usr/lib/perl5/site_perl/5.8.0/HTML/Template.pm line 2243. >=20 > > > The new template file looks like: > > > > > > <TMPL_LOOP ROWS> > > > <br> > > > <br> > > > <TMPL_VAR NAME=3DMODEL_NAME> > > > <br> > > > <img src=3D"<TMPL_VAR NAME=3DMODEL_THUMB>" border=3D0 height=3D100 = width=3D100> > > > <br> > > > Can be seen at: > > > > > > <TMPL_LOOP URLLOOP> > > > Model Name: <TMPL_VAR NAME=3DMODEL_NAME> > > > Model Comp: <TMPL_VAR NAME=3DMODEL_COMP> > > > > > > <TMPL_IF EXPR=3DMODEL_COMP eq MODEL_NAME"> > > > Model Name: <TMPL_VAR NAME=3DMODEL_NAME> > > > Model Comp: <TMPL_VAR NAME=3DMODEL_COMP> > > > The URL on match: <TMPL_VAR NAME=3DMODEL_URL> > > > </TMPL_IF> > > > </TMPL_LOOP> > > > > > > </TMPL_LOOP> > > > <br> |