Robust websockets
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
{{block "boxes" .}}
|
||||
{{range $index, $value := .}}
|
||||
<input type="checkbox" id="box-{{$index}}" name="checked" {{if $value}}checked{{end}}
|
||||
hx-post="/box/{{$index}}"
|
||||
hx-vals='{"value": this.checked}'
|
||||
hx-trigger="change"
|
||||
hx-encoding="none"
|
||||
>
|
||||
<input type="checkbox" id="box-{{$index}}" name="checked" {{if $value}}checked{{end}} >
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user