comment.html
1 <div class="box"> 2 <h3>Add a comment</h3> 3 <form action="comment" method="post" hx-post="{{ id }}/comments" hx-target="closest .box" hx-swap="outerHTML" hx-on::after-request="this.reset()" enctype="multipart/form-data"> 4 <textarea rows=3 placeholder="Say Hi!" name="content"></textarea> 5 <br> 6 <input type='submit' value="Send" /> 7 </form> 8 </div>