From 064fea3a00101fac9a5eb967dd675a01bfd5e8dc Mon Sep 17 00:00:00 2001 From: maddalax Date: Thu, 10 Oct 2024 09:13:27 -0500 Subject: [PATCH] add note about combining ext --- htmgo-site/md/docs/7_htmx_extensions/1_overview.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/htmgo-site/md/docs/7_htmx_extensions/1_overview.md b/htmgo-site/md/docs/7_htmx_extensions/1_overview.md index d8ecacc..bc3faae 100644 --- a/htmgo-site/md/docs/7_htmx_extensions/1_overview.md +++ b/htmgo-site/md/docs/7_htmx_extensions/1_overview.md @@ -16,5 +16,19 @@ h.Html( ) ``` +If you need to combine multiple extensions, you can use: + +```go +h.HxExtensions(h.BaseExtensions(), "my-extension"), +``` +or +```go +h.JoinExtensions( + h.HxExtension("sse"), + h.HxExtension("my-extension"), +), +``` + + **Important**: h.BaseExtensions will add the the 'htmgo' extension, which is a required extension for inline scripts to work properly, please always include it in your project.