문제

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?

도움이 되었습니까?

해결책

Yes, it's implemented, but it's called $velocityCount

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top