From d0a2f9b05a5df95f3d2800cb899c998d3c8d5fb6 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 8 Oct 2026 19:57:40 +0200 Subject: html-parser: fix custom element parsing --- src/z/App/root.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/z/App') 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, ), }), }; -- cgit v1.2.3-70-g09d2