NextGen Knowledge Center

For Loops

Velocity supports iterating through Lists / Collections / Arrays with the #foreach directive:

<table>
#foreach ($item in $list)
    <tr>
        <td>${item.name}</td>
    <tr>
#end
</table>