add htmx-alpine hybrid optimistic ui

This commit is contained in:
2025-12-12 02:56:51 +01:00
parent aa8410c723
commit 72741c9027
10 changed files with 421 additions and 0 deletions
@@ -0,0 +1,14 @@
{{ $data := .Data }} {{ $depth := .Depth }} {{ $mapa := $data | toMap }} {{
$depth | indent }} {{ if $mapa }} {{ $nextDepth := add $depth 1 }}
<ul style="list-style: none">
{{ range $key, $value := $mapa }}
<li>
{{ $nextDepth | indent }}
<strong>{{ $key }}:</strong>
{{ template "fragments/inspector" (dict "Data" $value "Depth" $nextDepth) }}
</li>
{{ end }}
</ul>
{{ else }} {{ $data }} {{ end }}