aboutsummaryrefslogtreecommitdiff
path: root/src/app/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/root.zig')
-rw-r--r--src/app/root.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/root.zig b/src/app/root.zig
index 8ed7f43..2b3554c 100644
--- a/src/app/root.zig
+++ b/src/app/root.zig
@@ -7,16 +7,16 @@ pub const std_options: std.Options = .{
.logFn = z.log.default,
};
+const components = @import("components/root.zig").components;
+
pub const app: z.App(.{
.name = "Memora",
.globals = &.{
z.Object.global(.window),
z.Object.global(.Object),
},
- .components = &.{
- @import("components/hello/root.zig").component,
- },
- .body = .node("app-hello", .{}, &.{}),
+ .components = components,
+ .body = .parse(@embedFile("index.html")),
.theme = @embedFile("theme.css"),
}) = .init;