luapage/corescripts/_global.lua
2021-05-02 15:07:43 +03:00

29 lines
No EOL
451 B
Lua

--[[ utility functions ]]--
function _el(name)
return function(args)
return { name, args }
end
end
h1 = _el("h1")
t = _el("text")
b = _el("b")
input = _el("input")
--[[ page module ]]--
page = {}
function page.Commit(content)
--__ext_pageview_clear()
for i, v in pairs(content) do
-- tag_name = v[1]
-- tag_props = v[2]
print(v[1], v[2])
__ext_pageview_append_tag(v[1], v[2])
end
end