From ce408d3b7b8a01506a2bf7f907fe7bda1bca970b Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 24 Jan 2022 20:48:23 -0800 Subject: [PATCH] pek now takes context param --- src/lib.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, }); } -- 2.54.0