File: eval2.vm

package info (click to toggle)
velocity 1.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,000 kB
  • ctags: 5,029
  • sloc: java: 37,878; xml: 14,959; sh: 172; makefile: 27; jsp: 24; sql: 18
file content (23 lines) | stat: -rw-r--r-- 306 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
##
## Test evaluate preserves macros 
##
#macro (test $a)
a: $a
#end
test 1: #test(12)
#evaluate("basic string")

test 2: #test(22)

##
## Test again while doing evaluate within macro 
##
#macro (test2 $a)
#evaluate("inner eval: $a")
#end
test 3: #test2(33)

#evaluate("basic string")

test 4: #test2(44)