NVelocity advance lopping syntax
问题 Currently I am doing a project which involve Nvelocity template, however, I need use advance foreach, I could find the reference, just I could not figure out how does it works,reference link #foreach($l in $markPoint)hardcodetext($l)#end however, I need add "," between items,hardcode will left one after last item, which I don't want, any helps? 回答1: The NVelocity special foreach looping directives are just nested sections inside the foreach directive, which you define bits of the template.