wimdeblauwe / htmx-spring-boot

Spring Boot and Thymeleaf helpers for working with htmx
Apache License 2.0
521 stars 49 forks source link

Provide a xmlns doccument #133

Open alwins0n opened 1 month ago

alwins0n commented 1 month ago

Hey there, maybe I am missing something, but the usage of e.g. hx:get is not very well supported in the IDE (e.g. Intellij) as foo: prefixes in the document is expecting a namespace declaration.

thymeleaf ships one and lets us use xmlns:th="http://www.thymeleaf.org" which solves all namespace issues and enables autocomplete.

I could not find any document for the hx: namespace and the only way to satisfy IDEA is to invent one.

wimdeblauwe commented 1 month ago

Inventing one to make IDEA happy is also what I do :)

alwins0n commented 1 month ago

okay... do you see value in editor completions for this project?

currently I am using exlusivly hx- attributes because the editor support is better.

wimdeblauwe commented 1 month ago

You can also use th:hx-... instead of hx:..., then IntelliJ also does not complain.