File: velocity

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (27 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#*
 There is multi-line comment.
 see this text because the Velocity Templating Engine will ignore it.
*#
<h3>List</h3>
## This is a single line comment.
#if( $allProducts )
<p>not found.</p>
#else

<table>
  <tbody>
    #foreach( $product in $allProducts )
    <tr id="product-$product.Id" data-url="#SURL("$!product.Slug")">
      <td>$product.Title</td>
    </tr>
    #end
  </tbody>
</table>
#end
#set( $monkey.Say = ["Not", $my, "fault", 10, false, null] ) ## ArrayList
#set( $result = $foo($bar[$baz]) )
${mudSlinger}
${customer.Address}
${purchase.getTotal(true)}
$title.set( "Homage to Catalonia" )