fixes
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
{{ define "users" }}
|
||||
<h1 class="text-3xl mb-8">Users</h1>
|
||||
<ul>
|
||||
{{ range .Users }}<li class="italic hover:font-bold">{{ .FirstName }}, {{ .Age }} years old</li>{{ end }}
|
||||
</ul>
|
||||
<div class="flex items-center justify-center!">
|
||||
<table class="border border-separate table-fixed" style="max-width: 50%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>First name</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range .Users }}
|
||||
<tr>
|
||||
<td>{{ .FirstName }}</td>
|
||||
<td>{{ .Age }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user