File: template.txt

package info (click to toggle)
javacc5 5.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,540 kB
  • sloc: java: 21,302; xml: 2,025; sh: 100; makefile: 18
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.