{{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="tags" type="checkbox" value="{{.}}" /> <label for="{{.}}">{{.}}</label> {{end}} <input type="submit" value="Senden" hx-post="/finish-article/" hx-target="#page-content" /> </form> {{end}} {{define "html-result"}} {{.}} {{end}}