aboutsummaryrefslogtreecommitdiff
path: root/src/z/App/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 19:57:40 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 19:58:40 +0200
commitd0a2f9b05a5df95f3d2800cb899c998d3c8d5fb6 (patch)
tree318d963894c138edad769dc08da730df7587aec6 /src/z/App/root.zig
parent3d0d5d88458112e5cc276f650e02609dc85c5b87 (diff)
html-parser: fix custom element parsing
Diffstat (limited to 'src/z/App/root.zig')
-rw-r--r--src/z/App/root.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/z/App/root.zig b/src/z/App/root.zig
index 8fce591..b8ca529 100644
--- a/src/z/App/root.zig
+++ b/src/z/App/root.zig
@@ -2,13 +2,14 @@ const builtin = @import("builtin");
const std = @import("std");
const Element = @import("../root.zig").html.Element;
const Document = @import("../root.zig").html.Document;
+const Fragment = @import("../root.zig").html.Fragment;
const Component = @import("../root.zig").Component;
pub const Options = struct {
name: []const u8,
globals: []const Global,
components: []const Component,
- body: Element,
+ body: Fragment,
theme: []const u8,
pub const Global = struct {
@@ -89,7 +90,7 @@ pub fn App(comptime options: Options) type {
break :reg register_code;
})}),
.node("script", .{}, &.{.text(@embedFile("main.js"))}),
- } ++ components ++ &[1]Element{options.body},
+ } ++ components ++ options.body.elements,
),
}),
};