Debian Codegraph @

tests/inputs/vtl.vm

raw
1 ## https://www.baeldung.com/apache-velocity
2 <html>
3 ##...
4 <body>
5 <center>
6 ## ...
7 <h2>$products.size() Products on Sale!</h2>
8 <br/>
9 We are proud to offer these fine products
10 at these amazing prices.
11 ## ...
12 #set( $count = 1 )
13 <table class="gridtable">
14 <tr>
15 <th>Serial #</th>
16 <th>Product Name</th>
17 #**
18 <th>Price</th>
19 </tr>
20 #foreach( $product in $products )
21 <tr>
22 <td>$count)</td>
23 <td>$product.getName()</td>
24 <td>$product.getPrice()</td>
25 </tr>
26 #set( $count = $count + 1 )
27 #end
28 </table>
29 <br/>
30 </center>
31 </body>
32 *#
33 </html>