You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Gunter Miessbrandt <mi...@ixtern.de> on 2002/02/15 10:49:30 UTC
dynamical call to a velocity macro
Hi list!
Is it possible to dynamical call a velocity macro?
For example:
#macro(a)
#end
#set($macro = "a")
#$macro() ## this should call the macro #a()
Thanks for any help
Gunter M.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: dynamical call to a velocity macro
Posted by Pete Kazmier <pe...@kazmier.com>.
The velocity-user mailing list would be more appropriate for this
question. Dynamic evaluation of directives/macro names is not
supported AFAIK (its a bit perl-ish which always stirs up conversation
on the velocity lists).
On Fri, Feb 15, 2002 at 10:49:30AM +0100, Gunter Miessbrandt wrote:
> Is it possible to dynamical call a velocity macro?
>
> For example:
>
> #macro(a)
> #end
>
> #set($macro = "a")
>
> #$macro() ## this should call the macro #a()
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>