aboutsummaryrefslogtreecommitdiff
path: root/src/z/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-06-15 17:33:47 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-06-15 17:33:47 +0200
commitb43985a19308cc47a7af9b74f74efdfc54be7a83 (patch)
tree737a42da37bd5060ea7df581046382157696e8be /src/z/root.zig
parent0eb3273f257e096c398ec324a1d2d755ec19a43d (diff)
add headers mechanism to responsedev
Diffstat (limited to 'src/z/root.zig')
-rw-r--r--src/z/root.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/z/root.zig b/src/z/root.zig
index 26bbffc..b23ebc5 100644
--- a/src/z/root.zig
+++ b/src/z/root.zig
@@ -25,7 +25,10 @@ pub const html: File = .{
};
pub fn env(comptime components: []const Component) Element {
- var children: []const Element = &.{script.load(@embedFile("z.js"))};
+ var children: []const Element = &.{
+ script.load(@embedFile("z.js")),
+ script.load(@embedFile("rest.js")),
+ };
inline for (components) |c| {
const child: []const Element = &.{c.toElement()};