velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: variables in a variable (recursive).
Date Fri, 08 Apr 2005 22:38:59 GMT
Hi David,

> Anyway know if Velocity supports variables in a variable? (not #parse, I
> know this one, but you have to created a separated template for it)
> 
> What I need is sth.  like this in the template.
> 
> $a, $b, lkjlk, #recurse($somevariable),.....
> 
>                                 ^ this somevariable will have imbedded
> $variables in it.
> 
> Anyone has some idea about it?

Check out (View)RenderTool.  :)
    http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/generic/RenderTool.html
    http://jakarta.apache.org/velocity/tools/view/ViewRenderTool.html

Best regards,
-- Shinobu

--
Shinobu Kawai <shinobu.kawai@gmail.com>

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