luapage/corescripts/_global.lua
2021-05-03 14:51:05 +03:00

22 lines
No EOL
335 B
Lua

--[[ utility functions ]]--
--
--[[ page module ]]--
page = {}
function page.Set(text)
__ext_pageview_set_content(text)
end
function page.Append(content)
for i, v in pairs(content) do
__ext_pageview_append_tag("t", v[1] or v)
end
end
function page.Commit(content)
page.Set("")
page.Append(content)
end