aboutsummaryrefslogtreecommitdiff
path: root/src/zeroscript/html/Fragment.zig
blob: d05ad4a5c6728c11e98f6e3c826d7f831beac18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const std = @import("std");
const mod = @import("root.zig");
const Element = mod.Element;

const Self = @This();

elements: []const Element,

pub fn format(self: *const Self, writer: *std.Io.Writer) !void {
    for (self.elements) |element| {
        try element.format(writer);
    }
}

pub const parse = mod.parser.fragment;