diff options
author | sanine <sanine.not@pm.me> | 2022-05-22 12:52:41 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-05-22 12:52:41 -0500 |
commit | 825194d0e5a1c16d3c3170a90a9a2679146044a7 (patch) | |
tree | 065ddca8a8ce34ea15f4fd01f0d74db95a029bb6 /marigold.lua | |
parent | 7e61cd41cca9a8915b346a79d658bab4829d8ff1 (diff) |
allow ignoring the content field in marigold.h
Diffstat (limited to 'marigold.lua')
-rw-r--r-- | marigold.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/marigold.lua b/marigold.lua index 3ed0f59..16aa054 100644 --- a/marigold.lua +++ b/marigold.lua @@ -58,6 +58,11 @@ end marigold.h = function(tag_type, content, tbl) + if type(content) == 'table' and tbl == nil then + tbl = content + content = '' + end + local tag = {} tag.tag = tag_type tag.content = content |