logo       

Re: Macros with large input on parameters: msg#00089

jakarta.velocity.user

Subject: Re: Macros with large input on parameters

Jeremy said:
> I am curious if it is possible to have macros with large input. I'll
give a
> simple example:
>
> #macro (block $title $body)
> <table class="Block">
> <tr><td class="BlockTitle">$title</td></tr>
> <tr><td class="BlockContents">$body</td></tr>
> </table>
> #end
...
> In the $body parameter, I would like to be able to run #foreach ...
#end's,
> have tables inside of it, etc...
...
> Is their a way to accomplish this?

and a really quick search of the archives reveals...

http://marc.theaimsgroup.com/?l=velocity-user&w=2&r=1&s=block+macro&q=
b

Nathan Bubna
nathan@xxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise