[
https://issues.apache.org/jira/browse/VELOCITY-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681451#action_12681451
]
Byron Foster commented on VELOCITY-697:
---------------------------------------
Sounds good, I was leaving it open for any comments/criticism, otherwise the
implementation is complete.
> Add macro default parameters
> ----------------------------
>
> Key: VELOCITY-697
> URL: https://issues.apache.org/jira/browse/VELOCITY-697
> Project: Velocity
> Issue Type: New Feature
> Components: Engine
> Affects Versions: 2.0
> Reporter: Byron Foster
> Fix For: 2.0
>
>
> Add the ability to specify default parameters to macros, for example:
> #macro(foo $x $y="legit")$x$y#end
> calling this with #foo(2) would give:
> 2legit
> Any number of default parameters can be specified, but no non-default
> parameters can not follow default parameters. Assignment of calling values
> begins from left to right and all left over default arguments are assigned
> their default values.
--
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]