add note about combining ext

This commit is contained in:
maddalax 2024-10-10 09:13:27 -05:00
parent 1c3065e432
commit 064fea3a00

View file

@ -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. **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.