| 1 |
#* |
| 2 |
This is a sample comment block that |
| 3 |
spans multiple lines. |
| 4 |
*# |
| 5 |
|
| 6 |
#macro ( outputItem $item ) |
| 7 |
<li>${item}</li> |
| 8 |
#end |
| 9 |
|
| 10 |
## Define the items to iterate |
| 11 |
#set ( $items = [1, 2, 3, 4] ) |
| 12 |
|
| 13 |
<ul> |
| 14 |
## Iterate over the items and output the evens. |
| 15 |
#foreach ( $item in $items ) |
| 16 |
#if ( $_MathTool.mod($item, 2) == 0 ) |
| 17 |
#outputItem ($item) |
| 18 |
#end |
| 19 |
#end |
| 20 |
</ul> |
| 21 |
|
| 22 |
<script> |
| 23 |
/* |
| 24 |
A sample function to decomstrate |
| 25 |
JavaScript highlighting and folding. |
| 26 |
*/ |
| 27 |
function foo(items, nada) { |
| 28 |
for (var i=0; i<items.length; i++) { |
| 29 |
alert(items[i] + "juhu\n"); |
| 30 |
} |
| 31 |
} |
| 32 |
</script> |
| 33 |
|
| 34 |
<style> |
| 35 |
/* |
| 36 |
A sample style to decomstrate |
| 37 |
CSS highlighting and folding. |
| 38 |
*/ |
| 39 |
.class { |
| 40 |
font-family: Monaco, "Courier New", monospace; |
| 41 |
font-size: 12px; |
| 42 |
cursor: text; |
| 43 |
} |
| 44 |
</style> |