velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <>
Subject Re: VTL syntax
Date Wed, 21 Feb 2001 18:49:13 GMT

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


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?


View raw message