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
|
import div, h3, ul, li, a from require 'lib.dom'
import define_fileders from require 'lib.mmmfs'
Fileder = define_fileders ...
require = relative ...
Fileder {
'name: alpha': 'animations',
'title: text/plain': 'canvas animations',
'moon -> mmm/dom': (path) => div {
h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' },
ul for child in *@children
name = child\gett 'name: alpha'
desc = child\gett 'description: text/plain'
li {
a name, {
href: child.path,
onclick: (_, e, ...) ->
print 'ASD', e, ...
window\alert 'YO WADDAFUQ'
e\preventDefault!
BROWSER\navigate "animations | #{name}",
},
': ', desc
}
}
require '.twisted'
require '.koch'
}
|