Genearte .zig verions of templates to use in production.

This commit is contained in:
2026-01-28 17:01:28 +05:30
parent 4092e6ad8e
commit 8db2e0df37
1170 changed files with 10153 additions and 3722 deletions

View File

@@ -0,0 +1,13 @@
const std = @import("std");
const helpers = @import("helpers.zig");
pub const Data = struct {};
pub fn render(allocator: std.mem.Allocator, _: Data) ![]const u8 {
var buf: std.ArrayListUnmanaged(u8) = .{};
defer buf.deinit(allocator);
try buf.appendSlice(allocator, "<!DOCTYPE html><html><head><title>My Site</title></head><body><h1>Welcome</h1><p>This is a simple page</p></body></html>");
return buf.toOwnedSlice(allocator);
}