blob: ac1de6c31b0f47de00728c21aa60ca90e6e1c3aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require"htk"
local a_table = {}
for i = 1, 20 do
local l = {}
for j = 1, 20 do
table.insert (l, HTK.TD { "cell "..i..","..j })
end
table.insert (a_table, HTK.TR (l))
end
cgilua.htmlheader()
cgilua.put (HTK.HTML {
HTK.HEAD { HTK.TITLE { "Titulo da Pagina" } },
HTK.BODY {
bgcolor = "#FFFFFF",
HTK.H1 { "Titulo da Pagina" },
HTK.P {},
"Uma página qualquer",
HTK.TABLE (a_table),
}
})
|