{{define "page-content"}} <h2>Editor</h2> <form> <input name="editor-title" placeholder="Titel" type="text" /> <textarea name="editor-desc" placeholder="Beschreibung"></textarea> <textarea name="editor-text" placeholder="Artikel"></textarea> {{range .}} <input id="{{.Name}}" name="tags" type="checkbox" value="{{.ID}}" /> <label for="{{.Name}}">{{.Name}}</label> {{end}} <input type="submit" value="Senden" hx-post="/finish-article/" hx-target="#page-content" /> </form> {{end}} {{define "html-result"}} {{.}} {{end}}