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/bolt/htmx/README.md
+8-16Lines changed: 8 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# bolt-htmx
1
+
# HTMX
2
2
3
3
Integrate HTMX with templates and views.
4
4
5
-
The `bolt-htmx`Django package adds a couple of unique features for working with HTMX.
5
+
The `bolt-htmx` package adds a couple of unique features for working with HTMX.
6
6
One is [template fragments](#template-fragments) and the other is [view actions](#view-actions).
7
7
8
8
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.
@@ -41,14 +41,6 @@ you can use the `{% htmx_js %}` template tag:
41
41
42
42
## Installation
43
43
44
-
You can install `bolt-htmx` with any Django project:
45
-
46
-
```sh
47
-
pip install bolt-htmx
48
-
```
49
-
50
-
Then add `bolt.htmx` to `settings.py`:
51
-
52
44
```python
53
45
INSTALLED_PACKAGES= [
54
46
# ...
@@ -140,7 +132,7 @@ a standard `div` is output that looks like this:
140
132
The `bolt-hx-fragment` is a custom attribute that we've added ("F" is for "Forge"),
141
133
but the rest are standard HTMX attributes.
142
134
143
-
When Django renders the response to an HTMX request,
135
+
When Bolt renders the response to an HTMX request,
144
136
it will get the `Bolt-HX-Fragment` header,
145
137
find the fragment with that name in the template,
146
138
and render that for the response.
@@ -209,7 +201,7 @@ class PullRequestDetailView(HTMXViewMixin, DetailView):
0 commit comments