Files
database_render/web/templates/builtin/debug.html
2025-08-07 20:03:53 +08:00

27 lines
560 B
HTML

{{define "content"}}
<h1>Debug Information</h1>
<pre>Table: {{.Table}}
TableAlias: {{.TableAlias}}
Total: {{.Total}}
Page: {{.Page}}
Pages: {{.Pages}}
Columns: {{json .Columns}}
Data Type: {{printf "%T" .Data}}
Data Length: {{len .Data}}
First Row: {{json (index .Data 0)}}
</pre>
<div>
<h2>Columns</h2>
<ul>
{{range .Columns}}
<li>{{.Name}} ({{.Alias}}) - Show: {{.ShowInList}}</li>
{{end}}
</ul>
</div>
<div>
<h2>Data</h2>
{{range $i, $row := .Data}}
<div>Row {{$i}}: {{json $row}}</div>
{{end}}
</div>
{{end}}