{{ partial "table.html" }} <div id = '{{ .Get "id" }}--container'> <script> document.addEventListener("DOMContentLoaded", function () { createTable({{ .Get "endpoint" }}, {{ .Get "id" }}, {{ .Get "headers" | safeJS }}, {{ .Get "maxHeight" }}, {{ .Get "sortable" }}, {{ .Get "valueId" }}, {{ .Get "selectableRows" }}, '{{ .Get "targets" }}'.split(" "), {{ .Get "defaultFirstSelected" | safeJS }}) }); </script> </div>