velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Esposito" <espos...@newnetco.com>
Subject RE: VTL syntax
Date Wed, 21 Feb 2001 18:46:20 GMT
sorry ... that was a typo ... i don't have #endif anywhere in my code ...
just #end ...

> -----Original Message-----
> From: Jason van Zyl [mailto:jvanzyl@periapt.com]
> Sent: Wednesday, February 21, 2001 1:49 PM
> To: velocity-user@jakarta.apache.org
> Subject: Re: VTL syntax
>
>
>
>
> > yah, a little hacky but i like it ... in VTL, however, since
> there are no
> > delimiters for keywords except whitespace, i can't do it ... If i try:
> >
> > <FONT color="#if($Error)red#elseblack#endif">
>
> #if($Error)red#elseblack#end">
>
> There is no #endif
>
> > it just plain doesn't work ... i tried the following, it
> evaluates correctly
> > but the fact that there is a leading space in the color=""
> value causes the
> > browser to not render the font the way I want it ...
> >
> > <FONT color="#if($Error)red#else black#endif">
>
> Really, you got this to work?
>
> jvz.
>


Mime
View raw message