File: set2.vm

package info (click to toggle)
velocity 1.7-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 5,844 kB
  • ctags: 5,363
  • sloc: java: 41,235; xml: 15,001; sh: 192; sql: 18; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (6)
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
28
29
## This template is used for the case in which #set with a null
## IS accepted
set2

#set($abc = "123")
$abc
#set($abc = $boohoo)
$abc

#set($map = {})
#set($map.foo = "foo")
#set($map.bar = "bar")
$map.foo
$map.bar
#set($map.bar = $boohoo) 
$map.foo
$map.bar

##
## check a macro
##

#macro (test) 
#set ($test = "test") 
$test 
#set ($test = $null) 
$test 
#end 
#test()