You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bolt-htmx/README.md
+8-16Lines changed: 8 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
<!-- This file is compiled from bolt-htmx/bolt/htmx/README.md. Do not edit this file directly. -->
2
2
3
-
# bolt-htmx
3
+
# HTMX
4
4
5
5
Integrate HTMX with templates and views.
6
6
7
-
The `bolt-htmx`Django package adds a couple of unique features for working with HTMX.
7
+
The `bolt-htmx` package adds a couple of unique features for working with HTMX.
8
8
One is [template fragments](#template-fragments) and the other is [view actions](#view-actions).
9
9
10
10
The combination of these features lets you build HTMX-powered views that focus on server-side rendering and avoid overly complicated URL structures or REST APIs that you may not otherwise need.
@@ -43,14 +43,6 @@ you can use the `{% htmx_js %}` template tag:
43
43
44
44
## Installation
45
45
46
-
You can install `bolt-htmx` with any Django project:
47
-
48
-
```sh
49
-
pip install bolt-htmx
50
-
```
51
-
52
-
Then add `bolt.htmx` to `settings.py`:
53
-
54
46
```python
55
47
INSTALLED_PACKAGES= [
56
48
# ...
@@ -142,7 +134,7 @@ a standard `div` is output that looks like this:
142
134
The `bolt-hx-fragment` is a custom attribute that we've added ("F" is for "Forge"),
143
135
but the rest are standard HTMX attributes.
144
136
145
-
When Django renders the response to an HTMX request,
137
+
When Bolt renders the response to an HTMX request,
146
138
it will get the `Bolt-HX-Fragment` header,
147
139
find the fragment with that name in the template,
148
140
and render that for the response.
@@ -211,7 +203,7 @@ class PullRequestDetailView(HTMXViewMixin, DetailView):
0 commit comments