Velocity Template Language (VTL)
Statements begin with '#'ex. #set( $a = "Velocity" )
References (varables, properties, and methods) begin with '$'
Formal notation ${
Quiet notation $!
Literal string delimited by single-quote
ex. 'I know strings'
Interpolated string delimited by double-quote
ex. "I love $a" => I love Velocity
## This is a single line comment
#* This is
a
multiline
comment *#
#**
This is a documentation comment
@author Me
@version 5
*#
escaping characters
$$ => $
This snipet
#set($foo='dude')
Hi $foo
Hi \$foo
Hi \\$foo
Hi \\\$foo
produces
Hi dude
Hi $foo
Hi \dude
Hi \$foo
If a reference is undefined,
Hi $foo
would produce
Hi $foo
because $foo is undefined
while
Hi $!foo
produces
"Hi "
without the ".