velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: Newbie question: Formal notation for #if #else #end
Date Fri, 15 Apr 2005 20:09:10 GMT
This is available in the latest nightly snapshot (1.5-dev) but not the most 
recently released 1.4


Download the nightly snapshot from:
http://cvs.apache.org/snapshots/velocity/


WILL


----- Original Message ----- 
From: "Ken Lai" <its_me_ken_lai@yahoo.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Friday, April 15, 2005 1:05 PM
Subject: Newbie question: Formal notation for #if #else #end


> Suppose I have the following:
>
> 123#if(1==1)456#end789
>
> I want the result to be 123456789. I ran a test
> and Velocity doesn't seem to recognize #end. So I
> tried formal notation as mentioned in
> (http://jakarta.apache.org/velocity/user-guide.html#Directives)
> with the following code:
>
> 123#if(1==1)456#{end}789
>
> Velocity still blows up. It doesn't look like the
> formal notation is recognized. I found a hack to
> do it like the following (which works):
>
> 123#if(1==1)456#end$!{DELIM}789
>
> Question: Is this a known issue? When will it be
> fixed?
>
> Thanks.
>
>
> Ken Lai
> ***** End of Message ******
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message