luci/libs/luci-lib-nixio/axTLS/www/lua/test_htk.lua
Jo-Philipp Wich 1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00

22 lines
403 B
Lua

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),
}
})