From 4e5b81c1688080ea770184f54c66ebe82482b692 Mon Sep 17 00:00:00 2001 From: frosty Date: Sat, 19 Sep 2026 23:40:53 -0400 Subject: feat: add html.append helper --- examples/site/build.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/site/build.lua b/examples/site/build.lua index e18124e..7a9dfd4 100644 --- a/examples/site/build.lua +++ b/examples/site/build.lua @@ -11,7 +11,7 @@ local features = { local feature_list = assert(html.find_by_class(page, "feature-list")) for _, feature in ipairs(features) do - table.insert(feature_list.children, html.element("li", nil, feature)) + feature_list:append(html.element("li", nil, feature)) end local entries = {} @@ -25,7 +25,7 @@ summary.text = tostring(#entries) .. " entries" local file_list = assert(html.find_by_class(page, "file-list")) for _, entry in ipairs(entries) do - table.insert(file_list.children, html.element("li", nil, + html.append(file_list, html.element("li", nil, html.element("code", nil, entry.path), " (", entry.type, ")")) end -- cgit v1.3