From 0260f392c19db7911496172c7d43d1178c6215cb Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 8 Oct 2026 17:44:46 +0200 Subject: add html parser --- src/app/components/hello/root.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app/components/hello/root.zig') 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(), }; -- cgit v1.2.3-70-g09d2