diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-09-19 23:40:53 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-09-19 23:42:41 -0400 |
| commit | 4e5b81c1688080ea770184f54c66ebe82482b692 (patch) | |
| tree | 56d8d3a2d5d0c9feb776ff084a4b2b9c68e8956e /examples/site/build.lua | |
| parent | ca4732f7c6e3d0c735cb0977c505db52b99ff688 (diff) | |
feat: add html.append helper
Diffstat (limited to 'examples/site/build.lua')
| -rw-r--r-- | examples/site/build.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
