wimdeblauwe / htmx-spring-boot

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

Allow templates to be added as resolved Views #55

Closed dsyer closed 1 year ago

dsyer commented 1 year 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 1 year ago

There seems to be a merge conflict

wimdeblauwe commented 1 year ago

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

odrotbohm commented 1 year ago

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

dsyer commented 1 year ago

Yes, that was one of the goals.

dsyer commented 1 year ago

(Added some tests)

wimdeblauwe commented 1 year 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 1 year ago

Done

wimdeblauwe commented 1 year ago

Thank you for your contribution!