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 | |
| parent | ec30b659dfd337f5edf512ea78032fe18251b704 (diff) | |
add html parser
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/components/hello/index.html | 1 | ||||
| -rw-r--r-- | src/app/components/hello/root.zig | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app/components/hello/index.html b/src/app/components/hello/index.html index 8b6b6a4..6d19662 100644 --- a/src/app/components/hello/index.html +++ b/src/app/components/hello/index.html @@ -1,2 +1,3 @@ <div onclick="@clicked"> + click me! </div> 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(), }; |