Velocity mode

 
1
## Velocity Code Demo
2
#*
3
   based on PL/SQL mode by Peter Raganitsch, adapted to Velocity by Steve O'Hara ( http://www.pivotal-solutions.co.uk )
4
   August 2011
5
*#
6
7
#*
8
   This is a multiline comment.
9
   This is the second line
10
*#
11
12
#[[ hello steve
13
   This has invalid syntax that would normally need "poor man's escaping" like:
14
15
   #define()
16
17
   ${blah
18
]]#
19
20
#include( "disclaimer.txt" "opinion.txt" )
21
#include( $foo $bar )
22
23
#parse( "lecorbusier.vm" )
24
#parse( $foo )
25
26
#evaluate( 'string with VTL #if(true)will be displayed#end' )
27
28
#define( $hello ) Hello $who #end #set( $who = "World!") $hello ## displays Hello World!
29
30
#foreach( $customer in $customerList )
31
32
    $foreach.count $customer.Name

MIME types defined: text/velocity.