开发者

Does NVelocity support foreach.count?

开发者 https://www.devze.com 2023-01-18 03:36 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号