diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-06 14:12:03 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-06 14:12:03 +0200 |
| commit | a4b2398aba2211ce5901ceb46f73057864bd1707 (patch) | |
| tree | 99c3d277ad991c189bf342238509be59b36b7889 /src/z/app/root.zig | |
| parent | dccd1987b418e47b4b82eda3aeaed40be18d9e45 (diff) | |
add global registry
Diffstat (limited to 'src/z/app/root.zig')
| -rw-r--r-- | src/z/app/root.zig | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/z/app/root.zig b/src/z/app/root.zig deleted file mode 100644 index 03760c4..0000000 --- a/src/z/app/root.zig +++ /dev/null @@ -1,20 +0,0 @@ -const html = @import("html"); - -pub const Options = struct { - name: []const u8 -}; - -pub fn create(options: Options) []const u8 { - return html.Element.native(.html, .{}, .children(&.{ - .native(.head, .{}, .children(&.{ - .native(.title, .{}, .content(options.name)), - .native(.meta, .{ - .name = "viewport", - .content = "width=device-width, initial-scale=1.0", - }, .void), - })), - .native(.body, .{}, .children(&.{ - .native(.script, .{}, .content(@embedFile("main.js"))), - })), - })).toDocument(); -} |