Hi Matt, Yes I did forget the " before the EXPR but it still fails with:
<TMPL_IF EXPR="MODEL_COMP eq MODEL_NAME">
With the following error:
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.
Thanks!!
> -----Original Message-----
> From: Mathew Robertson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2003 8:24 PM
> To: Chris; [EMAIL PROTECTED]
> Subject: Re: [htmltmpl] Comparing H::T:Expr variables
>
>
> > The new template file looks like:
> >
> > <TMPL_LOOP ROWS>
> > <br>
> > <br>
> > <TMPL_VAR NAME=MODEL_NAME>
> > <br>
> > <img src="<TMPL_VAR NAME=MODEL_THUMB>" border=0 height=100 width=100>
> > <br>
> > Can be seen at:
> >
> > <TMPL_LOOP URLLOOP>
> > Model Name: <TMPL_VAR NAME=MODEL_NAME>
> > Model Comp: <TMPL_VAR NAME=MODEL_COMP>
> >
> > <TMPL_IF EXPR=MODEL_COMP eq MODEL_NAME">
> > Model Name: <TMPL_VAR NAME=MODEL_NAME>
> > Model Comp: <TMPL_VAR NAME=MODEL_COMP>
> > The URL on match: <TMPL_VAR NAME=MODEL_URL>
> > </TMPL_IF>
> > </TMPL_LOOP>
> >
> > </TMPL_LOOP>
> > <br>
>
> It looks like you are missing a " after the EXPR ...?
> Mat
smime.p7s
Description: S/MIME cryptographic signature
