{"repo":"wimdeblauwe/htmx-spring-boot","free":true,"listed":false,"github":"https://github.com/wimdeblauwe/htmx-spring-boot","clone":"git clone https://github.com/wimdeblauwe/htmx-spring-boot.git","description":"Spring Boot and Thymeleaf helpers for working with htmx","language":"Java","stars":688,"topics":["htmx","spring-boot","thymeleaf"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Spring Boot and Thymeleaf library for htmx The project simplifies the integration of htmx with Spring Boot / Spring Web MVC applications. It provides a set of views, annotations, and argument resolvers for controllers to easily handle htmx-related request and response headers. This ensures seamless interaction between the frontend and backend, especially for dynamic content updates via htmx. Additionally, the project includes a custom Thymeleaf dialect to enable smooth rendering of htmx-specific attributes within Thymeleaf templates. With these tools, developers can quickly implement htmx-driven interactions, such as AJAX-based partial page updates, with minimal configuration. Maven configuration The project provides the following libraries, which are available on Maven Central, so it is easy to add the desired dependency to your project. htmx-spring-boot Provides annotations and helper classes. htmx-spring-boot-thymeleaf Provides a Thymeleaf dialect to easily work with htmx attributes. Usage Configuration The included Spring Boot Auto-configuration will enable the htmx integrations. Mapping Requests Controller methods can be annotated with HxRequest to be selected only if it is a htmx-based request (e.g. hx-get ). This annotation allows composition if you want to combine them. For example, you can combine annotations to create a custom @HxGetMapping . The following method is called only if the request was made by htmx. In addition, if you want to restrict the invocation of a","default_branch":null,"files":null,"tree":[],"storefront":"/r/wimdeblauwe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wimdeblauwe/htmx-spring-boot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}