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: www/content/docs.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ within the language:
91
91
* Now any element, not just the entire window, can be the target for update by the request
92
92
93
93
Note that when you are using htmx, on the server side you typically respond with *HTML*, not *JSON*. This keeps you firmly
94
-
within the [original web programming model](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm),
94
+
within the [original web programming model](https://roy.gbiv.com/pubs/dissertation/rest_arch_style.htm),
95
95
using [Hypertext As The Engine Of Application State](https://en.wikipedia.org/wiki/HATEOAS)
96
96
without even needing to really understand that concept.
97
97
@@ -101,7 +101,7 @@ It's worth mentioning that, if you prefer, you can use the [`data-`](https://htm
101
101
<adata-hx-post="/click">Click Me!</a>
102
102
```
103
103
104
-
If you understand the concepts around htmx and want to see the quirks of the library, please see our
104
+
If you understand the concepts around htmx and want to see the quirks of the library, please see our
105
105
[QUIRKS](@/QUIRKS.md) page.
106
106
107
107
## 1.x to 2.x Migration Guide
@@ -1163,7 +1163,7 @@ If you are using a bundler to manage your javascript (e.g. Webpack, Rollup):
1163
1163
- Import both packages to your `index.js`
1164
1164
```JS
1165
1165
import`htmx.org`;
1166
-
import`htmx-ext-extension-name`; // replace `extension-name` with the name of the extension
1166
+
import`htmx-ext-extension-name`; // replace `extension-name` with the name of the extension
1167
1167
```
1168
1168
1169
1169
Note: [Idiomorph](/extensions/idiomorph) does not follow the naming convention of htmx extensions. Use `idiomorph` instead of `htmx-ext-idiomorph`. For example, `https://cdn.jsdelivr.net/npm/idiomorph` or `npm install idiomorph`.
@@ -1379,7 +1379,7 @@ Here is an example of the code in action:
1379
1379
1380
1380
## Scripting {#scripting}
1381
1381
1382
-
While htmx encourages a hypermedia approach to building web applications, it offers many options for client scripting. Scripting is included in the REST-ful description of web architecture, see: [Code-On-Demand](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm#sec_5_1_7). As much as is feasible, we recommend a [hypermedia-friendly](/essays/hypermedia-friendly-scripting) approach to scripting in your web application:
1382
+
While htmx encourages a hypermedia approach to building web applications, it offers many options for client scripting. Scripting is included in the REST-ful description of web architecture, see: [Code-On-Demand](https://roy.gbiv.com/pubs/dissertation/rest_arch_style.htm#sec_5_1_7). As much as is feasible, we recommend a [hypermedia-friendly](/essays/hypermedia-friendly-scripting) approach to scripting in your web application:
*[Use events to communicate between components](/essays/hypermedia-friendly-scripting#events)
@@ -1697,7 +1697,7 @@ for exploring this topic.
1697
1697
1698
1698
### CSRF Prevention
1699
1699
1700
-
The assignment and checking of CSRF tokens are typically backend responsibilities, but `htmx` can support returning the CSRF token automatically with every request using the `hx-headers` attribute. The attribute needs to be added to the element issuing the request or one of its ancestor elements. This makes the `html` and `body` elements effective global vehicles for adding the CSRF token to the `HTTP` request header, as illustrated below.
1700
+
The assignment and checking of CSRF tokens are typically backend responsibilities, but `htmx` can support returning the CSRF token automatically with every request using the `hx-headers` attribute. The attribute needs to be added to the element issuing the request or one of its ancestor elements. This makes the `html` and `body` elements effective global vehicles for adding the CSRF token to the `HTTP` request header, as illustrated below.
1701
1701
1702
1702
Note: `hx-boost` does not update the `<html>` or `<body>` tags; if using this feature with `hx-boost`, make sure to include the CSRF token on an element that _will_ get replaced. Many web frameworks support automatically inserting the CSRF token as a hidden input in HTML forms. This is encouraged whenever possible.
1703
1703
@@ -1713,7 +1713,7 @@ Note: `hx-boost` does not update the `<html>` or `<body>` tags; if using this fe
1713
1713
</body>
1714
1714
```
1715
1715
1716
-
The above elements are usually unique in an HTML document and should be easy to locate within templates.
1716
+
The above elements are usually unique in an HTML document and should be easy to locate within templates.
0 commit comments