feat: template for all room participants
This commit is contained in:
@@ -82,16 +82,29 @@
|
||||
<div class="border p-3">
|
||||
{{ block "personBlocks" .TestPerson }}
|
||||
|
||||
{{ range (bricksForPerson .) }}
|
||||
{{ template "brick" . }}
|
||||
{{ end }}
|
||||
<p>{{ .Name }}</p>
|
||||
<div>
|
||||
{{ range (bricksForPerson .) }}
|
||||
{{ template "brick" . }}
|
||||
{{ end }}
|
||||
<p>{{ .Name }}</p>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
||||
<h2>And now i'll want to get all persons for a room</h2>
|
||||
<div class="grid place-content-center">
|
||||
{{ block "roomPeople" .ARoom }}
|
||||
<div
|
||||
class="flex flex-row"
|
||||
>
|
||||
{{ range (personsFromRoom .) }}
|
||||
{{ template "personBlocks" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{end}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user