Skip to content

Commit 4739dff

Browse files
Update skills/flask-ui-builder/references/htmx.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 80d92fc commit 4739dff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • skills/flask-ui-builder/references

skills/flask-ui-builder/references/htmx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def add():
4444
item = Item(title=request.form["title"])
4545
db.session.add(item)
4646
db.session.commit()
47-
return f"<li>{item.title}</li>" # returns just the new row
47+
return render_template("partials/item.html", item=item) # returns just the new row
4848
```
4949

5050
### Delete row without page reload

0 commit comments

Comments
 (0)