Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed Jan 21, 2025
2 parents 1ac87b9 + d890547 commit 4177071
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 6 additions & 2 deletions www/content/attributes/hx-ext.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = "hx-ext"

The `hx-ext` attribute enables an htmx [extension](https://htmx.org/extensions) for an element and all its children.

The value can be a single extension name or a comma separated list of extensions to apply.
The value can be a single extension name or a comma-separated list of extensions to apply.

The `hx-ext` tag may be placed on parent elements if you want a plugin to apply to an entire swath of the DOM,
and on the `body` tag for it to apply to all htmx requests.
Expand All @@ -25,4 +25,8 @@ hierarchy and it will apply to all child elements.
</div>
</div>
```

```html
<body hx-ext="preload,morph">
"preload" and "morph" extensions are used in this part of the tree...
</body>
```
2 changes: 1 addition & 1 deletion www/content/essays/alternatives.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Amazing!
[TwinSpark](https://twinspark.js.org/) is a library created by [Alexander Solovyov](https://solovyov.net/) that is
similar to htmx, and includes features such as [morphing](https://twinspark.js.org/api/ts-swap/#morph).

It is being [used in production](https://https://twinspark.js.org#who-is-using-this) on sites with 100k+ daily users.
It is being [used in production](https://twinspark.js.org#who-is-using-this) on sites with 100k+ daily users.

## jQuery

Expand Down
4 changes: 0 additions & 4 deletions www/content/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,6 @@ This event is triggered before the content is saved in the history api.
* `detail.path` - the path and query of the page being restored
* `detail.historyElt` - the history element being restored into

##### Details

* `detail.config` - the config that will be passed to the `EventSource` constructor

### Event - `htmx:load` {#htmx:load}

This event is triggered when a new node is loaded into the DOM by htmx.
Expand Down

0 comments on commit 4177071

Please sign in to comment.