velocity.vm 784 B

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