Skip to content

Commit d890547

Browse files
zachczxTelroshan
andauthored
Adding example to hx-ext documentation (#3109)
* Update hx-ext.md * Update hx-ext.md * Update www/content/attributes/hx-ext.md Co-authored-by: Vincent <[email protected]> * Update hx-ext.md --------- Co-authored-by: Vincent <[email protected]>
1 parent 5fd60a5 commit d890547

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

www/content/attributes/hx-ext.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "hx-ext"
44

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

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

99
The `hx-ext` tag may be placed on parent elements if you want a plugin to apply to an entire swath of the DOM,
1010
and on the `body` tag for it to apply to all htmx requests.
@@ -25,4 +25,8 @@ hierarchy and it will apply to all child elements.
2525
</div>
2626
</div>
2727
```
28-
28+
```html
29+
<body hx-ext="preload,morph">
30+
"preload" and "morph" extensions are used in this part of the tree...
31+
</body>
32+
```

0 commit comments

Comments
 (0)