velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Francois Chamard <>
Subject velocity user guide - addition
Date Fri, 12 Aug 2005 14:18:27 GMT
Hi there,
    I played with something thismorning and perhaps it would be nice to 
have in the "Velocimacro Miscellany" section in the user guide.

I saw somewhere (in the velocity wiki perhaps?) that you could call a 
macro and put it in a var
Example: #set($myvar="#mymacro($param)")

Today, I needed to do something like
which throw a parsing error.... so you could do

But this is also working, it just looks nicer

The next example could not work because the singlequote doesn't parse 
(so you would need to use 2 #set ..)

I hope it was useful

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message