From 008f090e1de2773d501a8210bd54acc7d977ebf7 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 8 Oct 2026 20:05:11 +0200 Subject: Component: add namespace option --- src/app/root.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/app/root.zig') 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; -- cgit v1.2.3-70-g09d2