summaryrefslogtreecommitdiff
path: root/tests/examplefiles/genshitext_example.genshitext
blob: b82708d283b904bc912696ddfaad82fb025c2ec2 (plain)
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
   ## a comment

\## not a comment

#if foo
  ${bar}
#endif

The answer is:
#choose
  #when 0 == 1
    0
  #end
  #when 1 == 1
    1
  #end
  #otherwise
    2
  #end
#end -- comment about choose

#for item in items
  * ${item}
#end

#def greeting(name)
  Hello, ${name}!
#end
${greeting('world')}

#with y=7; z=x+10
  $x $y $z
#end