Genearte .zig verions of templates to use in production.
This commit is contained in:
13
benchmarks/compiled/projects-escaped.zig
Normal file
13
benchmarks/compiled/projects-escaped.zig
Normal 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, "<li><a href=\"/project\">project_name</a>: project_description</li>");
|
||||
|
||||
return buf.toOwnedSlice(allocator);
|
||||
}
|
||||
Reference in New Issue
Block a user