[ 
https://issues.apache.org/jira/browse/VELOCITY-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nathan Bubna resolved VELOCITY-697.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Byron, i'm marking this resolved, because the feature looks pretty complete in 
2.0 to me.  If there's something that remains to be done for this, feel free to 
re-open.

> 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]

Reply via email to