|
|
1.1 moko 1: @auto[]
2: $t[^table::create{column1 column2
3: 1 one
4: 2 two
5: 3 three
6: 4 four}]
7: $tn[^table::create[nameless]{7 seven
8: 8 eight
9: 9 nine
10: }]
11:
12: $h[
13: $.1[$.one[data 1] $.two[data 2]]
14: $.2[two]
15: $.3[three^#0A -- 3]
16: $.4[
17: $.table[$t]
18: $.nameless[$tn]
19: ]
1.2 ! moko 20: $.5[^date::create[2017-01-01]]
1.1 moko 21: $.6(12345.15)
22: $.7[$__void__]
23: $.8[^xdoc::create{<?xml version="1.0" encoding="utf-8" ?>
24: <document>
25: текст
26: </document>}]
27: $.9[^file::create[file body]]
28: $.10[^image::create(100;100)]
29: ]
30:
31: @main[]
32: ^json:string[$h;
33: $.one-line(true)
34: $.image[$image_handler]
35: $.table[array]
36: ]
37:
38: ^json:string[$h.4;
39: $.one-line(true)
40: $.table[object]
41: ]
42:
43: ^json:string[$h.4;
44: $.one-line(true)
45: $.table[compact]
46: ]
47:
48: @image_handler[key;value;params]
49: "custom value of image $key - ^params.one-line.int[]"