| ... | @@ -9,6 +9,7 @@ const uri = @import("uri"); | ... | @@ -9,6 +9,7 @@ const uri = @import("uri"); |
| 9 | const zfetch = @import("zfetch"); | 9 | const zfetch = @import("zfetch"); |
| 10 | const json = @import("json"); | 10 | const json = @import("json"); |
| 11 | const extras = @import("extras"); | 11 | const extras = @import("extras"); |
| | 12 | const Base = @This(); |
| 12 | | 13 | |
| 13 | pub const Provider = struct { | 14 | pub const Provider = struct { |
| 14 | id: string, | 15 | id: string, |
| ... | @@ -245,7 +246,7 @@ pub fn Handlers(comptime T: type) type { | ... | @@ -245,7 +246,7 @@ pub fn Handlers(comptime T: type) type { |
| 245 | try response.headers.put("Content-Type", "text/html"); | 246 | try response.headers.put("Content-Type", "text/html"); |
| 246 | const page = files.@"/selector.pek"; | 247 | const page = files.@"/selector.pek"; |
| 247 | const tmpl = comptime pek.parse(page); | 248 | const tmpl = comptime pek.parse(page); |
| 248 | try pek.compile(alloc, response.writer(), tmpl, .{ | 249 | try pek.compile(Base, alloc, response.writer(), tmpl, .{ |
| 249 | .clients = Self.clients, | 250 | .clients = Self.clients, |
| 250 | }); | 251 | }); |
| 251 | } | 252 | } |