From 1f0749100b22c17272b4d294e1db3034097b57ea Mon Sep 17 00:00:00 2001 From: Rosa Date: Tue, 12 May 2026 13:49:45 -0400 Subject: start work on template api --- util/pages.zig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 util/pages.zig (limited to 'util/pages.zig') diff --git a/util/pages.zig b/util/pages.zig new file mode 100644 index 0000000..13d62a1 --- /dev/null +++ b/util/pages.zig @@ -0,0 +1,16 @@ +const std = @import("std"); + +pub const Template = struct { + file: std.Io.File, + + pub fn init(io: std.Io, dir: std.Io.Dir, sub_path: []const u8) !@This() { + const file = try dir.openFile(io, sub_path, .{}); + return .{ .file = file }; + } + + pub fn replacePlaceholder(template: *Template, key: []const u8, content: []u8) void { + _ = template; + _ = key; + _ = content; + } +}; -- cgit v1.3.1