[ 
https://issues.apache.org/jira/browse/VELOCITY-699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674433#action_12674433
 ] 

byronvf edited comment on VELOCITY-699 at 2/17/09 6:45 PM:
----------------------------------------------------------------

Hmm, I didn't expect resistance on this one, and I really didn't expect to be 
accused of complicating Velocity with it :).  I'm confused by your implication 
that return == Java.  I proposed it because as a Velocity user I would find it 
useful.

Anywho, I created a 'contrib' directory under 'directive', and I threw it in 
there.  To use it a user will need to manually add the directive.

      was (Author: byronvf):
    Hmm, I didn't expect resistance on this one, and I really didn't expect to 
be accused of complicating Velocity with it :).  I'm confused by your 
implication that return == Java.  I added it because as a Velocity user I would 
find it useful.

Anywho, I created a 'contrib' directory under 'directive', and I threw it in 
there.


  
> Add a #return directive for returning from a macro
> --------------------------------------------------
>
>                 Key: VELOCITY-699
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-699
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>
> The #return directive would be used to return from a macro call, for example:
> #macro(foo)
>   green
>   #return 
>   eggs and ham
> #end
> would render:
> green

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