~aleteoryx/lfm_embed

ref: 21ffaa07a20ccec702a77278724c6f78351a96f2 lfm_embed/src/theming/lua-lib/html.lua -rw-r--r-- 248 bytes
21ffaa07alyx Start of Lua support 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
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