diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-08 20:05:11 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-08 20:05:55 +0200 |
| commit | 008f090e1de2773d501a8210bd54acc7d977ebf7 (patch) | |
| tree | f62ab34861970425d1e4666b3f81cc17d84d1e4f /src/app/root.zig | |
| parent | 7e22857bc903f24823ae8c02affdd879714c3a26 (diff) | |
Component: add namespace option
Diffstat (limited to 'src/app/root.zig')
| -rw-r--r-- | src/app/root.zig | 8 |
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; |