Minor update to content load example

This commit is contained in:
Adriano Caloiaro 2023-07-04 15:40:21 -06:00
parent 3d5da99a4d
commit 27c420310d
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75

View file

@ -51,8 +51,11 @@ Here we are using a Hugo concept called an "inline shortcode". This allows us to
{{< htmx.inline >}}
<div
hx-get="/content.html"
hx-trigger="click" />
hx-trigger="click"
hx-target="#content_target"
hx-swap="beforeend" />
<button>Load content</button>
<div id="content_target"></div>
</div>
{{< /htmx.inline >}}