Does NVelocity support foreach.count?
-
05-10-2019 - |
Question
I'm using the NVelocity from the Castle project and according to the velocity specs I should be able to access the loop counter like this:
$foreach.counter
But I can't get it to work so I suspect that it has not been implemented in NVelocity.
Can anyone confirm this?
Solution
Yes, it's implemented, but it's called $velocityCount
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow