velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Reck <Christoph.R...@dlr.de>
Subject Re: VTL syntax
Date Thu, 22 Feb 2001 07:50:06 GMT
Hi folks,

I'm using a *very* simple solution to this:

<FONT color="#if($Error)red#else#**#black#endif">

it's using a comment as the else delimeter!

Hope this helps you all!

:) Christoph


David Esposito wrote:
>[snip]
> <FONT color="#if($Error)red#elseblack#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">
> 
> any suggestions? any chance that you could add an optional semicolon
> delimiter or something to the keyword so that I can inline it without having
> to use whitespace to seperate it out?
> 
> thanks in advance ..
> 
> -dave

Mime
View raw message