Annotation of embedaddon/axTLS/www/lua/test_htk.lua, revision 1.1.1.1
1.1 misho 1: require"htk"
2:
3: local a_table = {}
4: for i = 1, 20 do
5: local l = {}
6: for j = 1, 20 do
7: table.insert (l, HTK.TD { "cell "..i..","..j })
8: end
9: table.insert (a_table, HTK.TR (l))
10: end
11:
12: cgilua.htmlheader()
13: cgilua.put (HTK.HTML {
14: HTK.HEAD { HTK.TITLE { "Titulo da Pagina" } },
15: HTK.BODY {
16: bgcolor = "#FFFFFF",
17: HTK.H1 { "Titulo da Pagina" },
18: HTK.P {},
19: "Uma página qualquer",
20: HTK.TABLE (a_table),
21: }
22: })
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>