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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- child:
-- foo:
--- int:
--- int:
--- child:
-- ftd.column foo:
open: true
border-width: 4
padding: 10
string msg: Message from foo
--- ftd.text: CHILDREN-COUNT
--- ftd.integer: $CHILDREN-COUNT
--- ftd.text: Hello
--- ftd.text: World
--- child:
--- ftd.column:
border-width: 2
id: col-id
-- ftd.integer int:
value: $SIBLING-INDEX
-- ftd.column child:
string title: Hello World
--- ftd.text: $title
--- ftd.text: SIBLING-INDEX
--- ftd.integer: $SIBLING-INDEX
--- ftd.text: PARENT.CHILDREN-COUNT
--- ftd.integer:
value: $PARENT.CHILDREN-COUNT
if: $PARENT.CHILDREN-COUNT is not null
--- ftd.text: $PARENT.msg
if: $PARENT.msg is not null