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

Nathan Bubna commented on VELOCITY-699:
---------------------------------------

-1  let's keep VTL simple and quick to learn and not turn it into java.  no 
return statements.

if you really, really feel like it would be useful, i suppose i wouldn't veto 
enhancing #break to work like this, but even that i won't really like.  do not 
add a directive called #return.  macros are not java methods.

> 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