aboutsummaryrefslogtreecommitdiff
path: root/src/z/App/root.zig
diff options
context:
space:
mode:
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,
),
}),
};