From ea755bc757c722f7aeaeaba7d49cbdfb92fc00d6 Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Sun, 5 Nov 2023 10:52:50 -0800 Subject: [PATCH] Update to new syntax --- HTMX_INTEGRATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTMX_INTEGRATION.md b/HTMX_INTEGRATION.md index 151df21..e318111 100644 --- a/HTMX_INTEGRATION.md +++ b/HTMX_INTEGRATION.md @@ -110,7 +110,7 @@ button := elem.Button(attrs.Props{ htmx.HXTarget: "#result-div", }, elem.Text("Load Content")) -contentDiv := elem.Div(attrs.Props{elem.ID: "result-div"}, elem.Text("Initial content")) +contentDiv := elem.Div(attrs.Props{attrs.ID: "result-div"}, elem.Text("Initial content")) pageContent := elem.Div(nil, button, contentDiv) ```