Click
Click Examples

Source Viewer : /velocity/simple-table.htm

<style type="text/css"> th { color: white; } </style>

<b>Servlet Container System Properties</b>

<table border="0" cellpadding="2" cellspacing="0" style="margin-top:0.75em;">
  <tr valign="baseline" bgcolor="navy">
    <th class="left-column" style="text-align:left;">&nbsp; Name </th>
    <th class="right-column" style="text-align:left;"> Value </th>
  </tr>

#foreach( $key in $properties.keySet() )
  <tr #if($velocityCount % 2 == 0) bgcolor="#f7f7e7" #end> 
    <td class="left-column"> $key </td> 
    <td class="right-column"> $properties.get($key) </td>
  </tr>
#end
</table>