diff options
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(), }; |