• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#*
2
3@test comment.vm
4
5This template is used for Velocity regression testing.
6If you alter this template make sure you change the
7corresponding comparison file so that the regression
8test doesn't fail incorrectly.
9
10*#
11
12## this is a single line comment
13
14#*
15
16this is a multi line comment
17
18#if (
19
20*#
21
22#**
23
24@author jason van zyl
25
26*#
27
28this is some text.
29
30The following is a 'Christoph Comment' ;)
31##  ##
32foo
33
34We can now comment after the inline set :
35
36#set( $foo = 1 ) ## and this is a set statement
37
38
39## here is a Nathan Bubna bug :
40
41$bar##
42#set($foo = 'foo!' )
43$foo
44
45
46##  here's one reported by Daniel Dekany
47
48$##
49there is a dollar before me
50
51
52Test of multiline/singleline combo
53## fix for bug 7697
54
55#*
56    multiline
57
58    ## embedded singline comment
59
60    stuff
61
62*#
63
64with some closing text
65
66##test
67
68
69Test for Velocity-783:
70
71#set( $map = { 'foo' : 'bar' })
72$map.size()## ok
73$map.foo## not ok before bugfix
74$map.foo ## ok with a space behind
75${map.foo}## ok with curly braces
76$map## ok
77schmoo## ok
78
79