> > I'm wondering, is there a "macro with body content" in the
> pipeline for
> > Velocity Core? Seems like a spiffy thing to have.
>
> How would one use it?
#ConvertToTable("hasHeader")
User | Role
tcolson | Just a Geek
shinobu | Happy Developer
nbubna | Grumpy Developer
#end
...and then imagine part of the macro looks something like this:
#foreach ($line in $body.split("\n") )
<TR>
#foreach ($item in $line.split(" | ") )<TD>$item</TD>#end
</TR>
#end
Cheers,
Timo
P.S. I'm doing almost exactly this in Confluence - using Velocity to
define a confluence macro that starts/ends with
{team}..body..stuff..here..on..multiple..lines{team}. Multiple lines
keeps it realllly clean for edits - compared to my first attempt which
had everything mashed into ONE line as a single "parameter". Fugly, that
was.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]