wimdeblauwe / htmx-spring-boot

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

Allow templates to be added as resolved Views #55

Closed dsyer closed 11 months ago

dsyer commented 12 months ago

Also as fully-formed ModelAndView, or (as before) as view name String to be resolved later.

See https://github.com/wimdeblauwe/htmx-spring-boot-thymeleaf/discussions/53

wimdeblauwe commented 12 months ago

There seems to be a merge conflict

wimdeblauwe commented 12 months ago

@odrotbohm anything you want to add here? As this was mainly your code :)

odrotbohm commented 12 months ago

I like what I see, as, IIUC, this should allow dedicated models per template (fragment) rendered?

dsyer commented 12 months ago

Yes, that was one of the goals.

dsyer commented 12 months ago

(Added some tests)

wimdeblauwe commented 12 months ago

Maybe we should update the README.md to explain those new usages as well? (See section https://github.com/wimdeblauwe/htmx-spring-boot-thymeleaf#oob-swap-support)

dsyer commented 12 months ago

Done

wimdeblauwe commented 11 months ago

Thank you for your contribution!