The syntax that you are using is correct.  I suspect that there is another error some 
where.

What happens if you use the 'strict => 0' option to HTML::Template?  

Mat


> 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.
> 
> > > 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>




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to