summaryrefslogtreecommitdiff
path: root/t/macro/block.sdf
blob: 761b46756187444de626774b8781bdf171562e85 (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
# This file tests blocks

# a simple block
!block example
Hello world.

How are
you?
!endblock

# nested blocks where the inner one is executed
!block sdf
H1: Heading 1
!block example
Name    Value
xyz     42
abc     "My favorite station"
!endblock 
H2: Heading 2
!endblock 

# nested blocks where the inner one is NOT executed
!block example
!block define
Name    Value
xyz     42
abc     "My favorite station"
!endblock 
!endblock