aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/set/set2.vm
blob: 358a58a4e8e7ab7c48bc937abfbc883778a5f570 (plain)
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()