diff options
Diffstat (limited to 'src/theming/lua-lib/html.lua')
-rw-r--r-- | src/theming/lua-lib/html.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/theming/lua-lib/html.lua b/src/theming/lua-lib/html.lua new file mode 100644 index 0000000..de65d6a --- /dev/null +++ b/src/theming/lua-lib/html.lua @@ -0,0 +1,12 @@ +-- SPDX-License-Identifier: AGPL-3.0-only + +local function html(el, tbl) + expect(1, el, "string") + expect(2, el, "table") + + for k, v in pairs(tbl) do + if type(k) == "string" then + expect.field(tbl, k, "string", "table") + end + end +end |