From e5db6ebe4cbf9a8d04e35a7370ce249022e34315 Mon Sep 17 00:00:00 2001 From: GavinRay97 Date: Wed, 27 May 2020 23:11:41 -0400 Subject: [PATCH] Make note of syntax for using multiple extensions --- www/extensions.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/extensions.md b/www/extensions.md index c76b59fd..d386842f 100644 --- a/www/extensions.md +++ b/www/extensions.md @@ -18,6 +18,12 @@ To use an extension you use the [hx-ext](/attributes/hx-ext) attribute: Note that 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. +**Tip:** To use multiple extensions on one element, separate them with a comma: + +```html + +``` + ## [Included Extensions](#included) The following extensions that are tested and distributed with htmx: @@ -63,4 +69,4 @@ Extensions can override the following default extension fields: handleSwap : function(swapStyle, target, fragment, settleInfo) {return false;}, encodeParameters : function(xhr, parameters, elt) {return null;} } -``` \ No newline at end of file +```