Skip to content

Commit

Permalink
Upgrade HTMX example to HTMX 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed Jul 1, 2024
1 parent 2e61c29 commit d36b31d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ db.sqlite3-journal
/mediafiles/*
__pycache__/
/.vscode/
/.mypy_cache/

# coverage result
.coverage
Expand Down
4 changes: 2 additions & 2 deletions example/demo/templates/demo/chat_home.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ <h3>Threads</h3>
class="btn btn-primary mt-3"
hx-post='{% url "chat_home" %}'
hx-target="#threads-container"
hx-select="#messages-container"
hx-select-oob="#messages-container"
hx-select="#messages-list"
hx-select-oob="#messages-list"
hx-push-url="true"
data-loading-disable
>
Expand Down
5 changes: 2 additions & 3 deletions example/demo/templates/demo/htmx_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
/>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.3.3/js/bootstrap.min.js"></script>
<!-- HTMX -->
<script src="https://unpkg.com/[email protected]/dist/htmx.min.js"></script>
<script src="https://unpkg.com/htmx.org/dist/ext/json-enc.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ext/loading-states.js"></script>
<script src="https://unpkg.com/[email protected]/dist/htmx.min.js"></script>
<script src="https://unpkg.com/[email protected]/loading-states.js"></script>
</head>

<body
Expand Down

0 comments on commit d36b31d

Please sign in to comment.