Files
pugz/benchmarks/compiled/if-expression.zig

14 lines
348 B
Zig
Raw Normal View History

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.ArrayList(u8) = .{};
defer buf.deinit(allocator);
try buf.appendSlice(allocator, "<p>Active</p><p>Inactive</p>");
return buf.toOwnedSlice(allocator);
}