mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 22:41:23 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
40606158fa
@ -96,7 +96,7 @@ at this point you can modify `/src/htmx.js` to add features, and then add tests
|
||||
* `/test/ext` - extension tests
|
||||
* `/test/manual` - manual tests that cannot be automated
|
||||
|
||||
htmx use the [mocha](https://mochajs.org/) testing framework, the [chai](https://www.chaijs.com/) assertion frame work,
|
||||
htmx uses the [mocha](https://mochajs.org/) testing framework, the [chai](https://www.chaijs.com/) assertion frame work,
|
||||
and [sinon](https://sinonjs.org/releases/v11.1.1/fake-xhr-and-server/) to mock out AJAX requests. They are all OK.
|
||||
|
||||
## haiku
|
||||
|
@ -62,7 +62,7 @@ data: <div>Content to swap into your HTML page.</div>
|
||||
```
|
||||
|
||||
```html
|
||||
<div hx-sse="connect:/server-url swap:eventName></div>
|
||||
<div hx-sse="connect:/server-url swap:eventName"></div>
|
||||
```
|
||||
|
||||
### Data Only Events
|
||||
@ -74,7 +74,7 @@ data: <div>Content to swap into your HTML page.</div>
|
||||
```
|
||||
|
||||
```html
|
||||
<div hx-sse="connect:/server-url swap:message></div>
|
||||
<div hx-sse="connect:/server-url swap:message"></div>
|
||||
```
|
||||
|
||||
### Notes
|
||||
|
@ -121,7 +121,7 @@ Using this approach, the HTML doesn't need to change from the original setup at
|
||||
Instead of modifying something on the front end, in your response to the `POST` to `/contacts` you would include some additional content:
|
||||
|
||||
```html
|
||||
<tr hx-oob-swap="beforeend:#contacts-table">
|
||||
<tr hx-swap-oob="beforeend:#contacts-table">
|
||||
<td>Joe Smith</td>
|
||||
<td>joe@smith.com</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user