blob: b706f7c8975c56c02c25901e267d2f1423fdbed8 (
plain)
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
|
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': 'articles',
'title: text/plain': 'articles and papers',
'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) =>
e\preventDefault!
BROWSER\navigate child.path
},
': ', desc
}
}
require '.mmmfs'
require '.realities'
}
|