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


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