robin/maivi

a tiny cute lua web framework

git clone https://git.robinwobin.dev/robin/maivi

robindocs: wip897859d

push-srxvuswpkqxx
489 B25 linesraw
1return function(_, _)
2  return h.main({
3    h.article({
4      class = "text",
5
6      h(Iter.lst(maivi.data.sections)
7        :map(function(_, data)
8          local header = h.h1({
9            id = data.id,
10            data.section,
11          })
12
13          if data.content then
14            return h.section({
15              header,
16              data.content and h.raw(data.content) or nil,
17            })
18          end
19
20          return header
21        end)
22        :to()),
23    }),
24  })
25end