aboutsummaryrefslogtreecommitdiff
path: root/src/app/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 20:05:11 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 20:05:55 +0200
commit008f090e1de2773d501a8210bd54acc7d977ebf7 (patch)
treef62ab34861970425d1e4666b3f81cc17d84d1e4f /src/app/root.zig
parent7e22857bc903f24823ae8c02affdd879714c3a26 (diff)
Component: add namespace option
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;