diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-08 17:44:46 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-08 17:44:46 +0200 |
| commit | 0260f392c19db7911496172c7d43d1178c6215cb (patch) | |
| tree | c5a1f8ff56d3ea727da1d8d29059fc046b102890 /src/app/components/hello/root.zig | |
| parent | ec30b659dfd337f5edf512ea78032fe18251b704 (diff) | |
add html parser
Diffstat (limited to 'src/app/components/hello/root.zig')
| -rw-r--r-- | src/app/components/hello/root.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/components/hello/root.zig b/src/app/components/hello/root.zig index c4a7732..761f46b 100644 --- a/src/app/components/hello/root.zig +++ b/src/app/components/hello/root.zig @@ -5,7 +5,7 @@ const Self = @This(); pub const component: z.Component = .{ .name = "hello", - .html = .node("div", .{ .onclick = "@clicked" }, &.{.text("click me")}), + .html = .parse(@embedFile("index.html")), .css = @embedFile("index.css"), .link = @This(), }; |