|
Macros with large input on parameters: msg#00088jakarta.velocity.user
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 Easy macro, but here's an example use: #block ("Recent News" "........") In the $body parameter, I would like to be able to run #foreach ... #end's, have tables inside of it, etc... The code to generate the presentation of Recent News might be 50 lines long. <noflame_please> In my perl days, using TemplateParser I could do something like: [% BLOCK title="Recent News" %] Here is all my code shiped to what would be the $body argument of the above macro. This could be 1,000 lines long if necessary. [% END %] </noflame_please> Is their a way to accomplish this? Thank you, Jeremy |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Use gnutar to untar release on mac os x!: 00088, Denis |
|---|---|
| Next by Date: | Re: Macros with large input on parameters: 00088, Nathan Bubna |
| Previous by Thread: | Use gnutar to untar release on mac os x!i: 00088, Randall Lucas |
| Next by Thread: | Re: Macros with large input on parameters: 00088, Nathan Bubna |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |