aboutsummaryrefslogtreecommitdiff
path: root/src/z/root.zig
diff options
context:
space:
mode:
authorAlexander Rolley <arolley35@gmail.com>2026-08-05 17:25:27 +0200
committerAlexander Rolley <arolley35@gmail.com>2026-08-05 17:25:27 +0200
commitdc90bc811648da695e4cb47826ea6479cfd22a06 (patch)
tree3621725aadb61d267f1e88afb570a4ab3c824ab8 /src/z/root.zig
parent23ac91196552068d44bab5677a09a106b8172e27 (diff)
parent9b63c0f568832085b75ea6e3e983dc6cbeccfea4 (diff)
Merge branch 'dev' of https://git.nathanreiner.xyz/memora into develop
Diffstat (limited to 'src/z/root.zig')
-rw-r--r--src/z/root.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/z/root.zig b/src/z/root.zig
index 26bbffc..1fa8d99 100644
--- a/src/z/root.zig
+++ b/src/z/root.zig
@@ -3,6 +3,7 @@ const std = @import("std");
pub const Minifier = @import("Minifier.zig");
pub const Component = @import("Component.zig");
pub const File = @import("File.zig");
+pub const parser = @import("parser/root.zig");
const Element = @import("html").Element;
@@ -25,7 +26,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()};