[
https://issues.apache.org/jira/browse/VELOCITY-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna resolved VELOCITY-583.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.7
I'm marking this fixed, though it is implemented differently than discussed
here. Jarkko's solution in VELOCITY-666 is superior since it allows you to
declare macros for which the body is optional and leaves the body/no-body
decision to the caller of the macro, distinguishing the those using a body at
parsetime by means of a @ between # and macro name (e.g. #...@usesbody() tada!
#end). Jarkko's solution also provides for configurability of the body
reference.
> BlockMacro support
> ------------------
>
> Key: VELOCITY-583
> URL: https://issues.apache.org/jira/browse/VELOCITY-583
> Project: Velocity
> Issue Type: New Feature
> Components: Engine
> Reporter: Raghu Rajah
> Fix For: 1.7
>
> Attachments: blockmacro.patch
>
>
> Here's the trivial example,
> #blockmacro(html $style)
> <html style="$style">
> ${yield}
> </html>
> #end
> Block Macro Result
> #html("color:red")
> <body>Raghu</body>
> #end
> Full discussion on thread: http://tinyurl.com/ytq3k4
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]