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

Stefan Endrullis commented on VELOCITY-696:
-------------------------------------------

I'm a bit confused about the resolution of this issue. It's marked as "fixed", 
but what does that mean? It's available in contrib, but it's not going to be a 
feature of the official #foreach, is it?

> Add index parameter to #foreach directive to define an index variable
> ---------------------------------------------------------------------
>
>                 Key: VELOCITY-696
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-696
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>
> Allow the following:
> #foreach($user in $users index $i)
> #end
> So that $i holds the current index number of the iteration.  This is similar 
> in functionality to the implicitly defined index variable, except this is 
> more explicit.

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