[
https://issues.apache.org/jira/browse/VELOCITY-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674440#action_12674440
]
Byron Foster commented on VELOCITY-700:
---------------------------------------
<qoute>
FYI, i'm also still considering vetoing the #foreach( $user in $users index $i
) syntax, since i think it is ugly, unclear, and unnecessary. the more i look
at it, the more i dislike it. having that syntax in combo with this one would
make my eyes water.
</qoute>
I get the impression you don't like the 'index' syntax... :) I of course like
it or I would not have implemented it. I think it is superior to the current
magic variable approach which I think feels more like an after thought.
However, It is a non-issue, I will place the index functionality into the
directive.contrib directory.
Concerning the #break label issue, I don't know how I feel about it, I'm
indifferent.. I threw it out there to get some feedback.
> Add #foreach keyword to specify #break level
> --------------------------------------------
>
> Key: VELOCITY-700
> URL: https://issues.apache.org/jira/browse/VELOCITY-700
> Project: Velocity
> Issue Type: New Feature
> Components: Engine
> Affects Versions: 2.0
> Reporter: Byron Foster
>
> if the last argument to to the #foreach directive is a word, then that word
> serves as a label to indicate the break level for the #break directive. Par
> exemple:
> #foreach($user in $users outer)
> #foreach($email in $user.emails)
> #if($email.expired)
> #break(outer)
> #end
> #end
> #end
--
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]