Debian Codegraph @

demo/kitchen-sink/docs/mask.mask

raw
1 /* Mask Syntax Demo */
2
3 div > ' Test ~[name]';
4
5 define :userProfile {
6 header {
7 h4 > @title;
8 button.close;
9 }
10 }
11
12 :userProfile {
13 @title > ' Hello ~[: username.toUpperCase()]'
14 }
15
16 style {
17 html, body {
18 background: url('name.png') 0 0 no-repeat;
19 }
20 }
21
22 button {
23 event click (e) {
24 this.textContent = `name ${e.clientX} !`;
25 }
26 }
27
28 md > """
29
30 - div
31 - span
32
33 Hello
34
35 [one](http://google.com)
36
37 """;
38
39
40 header .foo > 'Heading'
41
42 button .baz x-signal='click: test' disabled > "
43 Hello,
44 world
45 \"Buddy\"
46 "
47
48 var a = {
49 name: `name ${window.innerWidth}`
50 };
51
52 span .foo > "~[bind: a.name]"