aboutsummaryrefslogtreecommitdiff
path: root/src/web/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-05 15:33:46 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-05 15:33:46 +0200
commit02582cc490fc0d753dd153211cc172eb28fbee5d (patch)
tree4add149d5e1ecf28cf20ecb497626fef85cdbd75 /src/web/root.zig
parent2f3199622d9e7a97da4b5c31a2d81b170b7cdaa6 (diff)
first sketch of wasm environment
Diffstat (limited to 'src/web/root.zig')
-rw-r--r--src/web/root.zig26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/web/root.zig b/src/web/root.zig
deleted file mode 100644
index d027dc8..0000000
--- a/src/web/root.zig
+++ /dev/null
@@ -1,26 +0,0 @@
-const z = @import("z");
-const html = @import("html");
-const http = @import("http");
-const Static = http.handler.Static;
-
-const components = @import("component/root.zig").components;
-
-const document: html.Element = .native(.html, .{}, .children(&.{
- .native(.head, .{}, .children(&.{
- .native(.title, .{}, .content("Memora")),
- .native(.meta, .{
- .name = "viewport",
- .content = "width=device-width, initial-scale=1.0",
- }, .void),
- z.script.load(@embedFile("pinch.js")),
- z.style.load(@embedFile("index.css")),
- z.env(components),
- })),
- .native(.body, .{}, .children(&.{
- z.html.load(@embedFile("index.html")),
- })),
-}));
-
-pub const interfaces: []const http.handler.Interface = &.{
- Static(.index, document.toDocument()).interface(),
-};