diff --git a/src/lib.zig b/src/lib.zig index 83b8407b3409f21d75da9f6a0a84dd65263af8ac..2f28b764dc00f75dbe500b4a42997c3a87da21a2 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -9,6 +9,7 @@ const uri = @import("uri"); const zfetch = @import("zfetch"); const json = @import("json"); const extras = @import("extras"); +const Base = @This(); pub const Provider = struct { id: string, @@ -245,7 +246,7 @@ pub fn Handlers(comptime T: type) type { try response.headers.put("Content-Type", "text/html"); const page = files.@"/selector.pek"; const tmpl = comptime pek.parse(page); - try pek.compile(alloc, response.writer(), tmpl, .{ + try pek.compile(Base, alloc, response.writer(), tmpl, .{ .clients = Self.clients, }); }