File: template.txt

package info (click to toggle)
javacc 5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 3,452 kB
  • ctags: 3,011
  • sloc: java: 21,299; xml: 2,024; sh: 120; makefile: 24
file content (33 lines) | stat: -rw-r--r-- 529 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
Hello, world
#if falseArg
   Shouldn't be here.
#else
   But this should
   -->${stringValue}<--
#fi

#if true
	True1
	${stringValue:-Should not be here}
	${noSuchVar:-Should be here}
	#if trueArg
	  True2
	#else
	  False 1
	#fi
#else
	False 2
	#if true
	  Not expected
	#else
	  Not expected 2
	#fi
#fi
	
This should say no: ${falseArg?yes:no}
This should say yes: ${trueArg?yes:no}

This should say someString: ${trueArg?${stringValue}:}
This should say xxsomeStringxx: ${not_found?${stringValue}:xx${stringValue}xx}

The end.