2021-05-02 15:07:43 +03:00
|
|
|
--[[ utility functions ]]--
|
|
|
|
|
|
|
|
function _el(name)
|
|
|
|
return function(args)
|
|
|
|
return { name, args }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-05-02 17:24:40 +03:00
|
|
|
t = _el("t")
|
2021-05-02 15:07:43 +03:00
|
|
|
|
|
|
|
--[[ 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
|