File: array.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 (42 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (8)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#*

@test array.vm

This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression 
test doesn't fail incorrectly.

*#

#set( $foo = [$this, $that, $woog.Bar, [$this, "this"] ])

$provider.concat(["a", "b", "c"])

#set($foo = "a")
$provider.objConcat( [1..2] )
$provider.objConcat( ["a","b"] )
$provider.objConcat( [1..2 ] )
$provider.objConcat( [$foo] )
$provider.objConcat( [ $foo] )
$provider.objConcat( [$foo ] )

#macro( showme $array )
 #foreach( $i in $array )
   > $i <#end

#end

#set($woog = "a")
#set($floog = "b")
#showme( [ $woog] )
#showme( [ $woog,$floog] )
#showme( [1..2])
#showme( [1 ..2 ])

##  and more....

$p.m( [ $A.g(1), $title ])
$pp.messageFormat( [ $Abc.get($sti), $title, $ti, $sti, 'bodytext' ], $subtopicTemplate)
#set ($args = [ $pp.nQuestions, $pass, $units ] )