Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
1{
2 {type='rows', default={font={size=21}, line_height=25},
3 {type='text', font={size=28}, line_height=50,
4 {'Lua@{Lua} > values and types',
5 attrs={
6 Lua={target='--lua'},
7 }},
8 },
9 {type='filler', height=15},
10 {type='text', 'Variables in Lua can hold a few kinds of things, including:'},
11 {type='text', '- numbers like 0, 3, -5 or 2.5'},
12 {type='text', '- strings like "abc" or \'hello there\''},
13 {type='text', '- booleans true or false'},
14 {type='text',
15 {'- fn@{functions}', attrs={fn={target='--lua-fn'}}},
16 target='--lua-def'},
17 {type='text',
18 {'- tables@{tables} like {1, 2, 3} or {dogs=1}', attrs={tables={target='--lua-table'}}}},
19 {type='text', '- nil, which represents the absence of other things'},
20 }
21}