aboutsummaryrefslogtreecommitdiffstats
path: root/src/theming/lua-lib/html.lua
blob: de65d6a21e20793193b1d07ca1fb9c082aeeaa9c (plain) (blame)
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