add note about combining ext
This commit is contained in:
parent
1c3065e432
commit
064fea3a00
1 changed files with 14 additions and 0 deletions
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue