aboutsummaryrefslogtreecommitdiff
path: root/util/pages.zig
blob: 13d62a137d03f4f7abd1658db426fecaf522814e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
    }
};