[
https://issues.apache.org/jira/browse/VELOCITY-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623126#action_12623126
]
Jarkko Viinamäki commented on VELOCITY-583:
-------------------------------------------
I think the #define directive descibed in VELOCITY-174 can be used to
accomplish the same thing (use #define to create some custom AST set and pass
it as an argument to a regular macro). IMHO #define seems more general and
cleaner solution. Or does this accomplish something that can't be done with
#define?
> 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.6
>
> 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]