I'm using a Javascript library to produce a carousel and it has a custom attribute data-flickity. When I use the latest SNAPSHOT build of Springboot (2.0.0.BUILD-SNAPSHOT) the component works just fine without any changes to the code, but when I downgrade to the latest RELEASE (1.5.2.RELEASE), the component breaks entirely. I need to run this on 1.5.2. I have a feeling it has to do with the custom data-attribute:
<div class="gallery" data-flickity='{ "cellAlign": "left", "contain": true }'>
So I tried this:
<div class="gallery" th:atrr="data-flickity='{ "cellAlign": "left", "contain": true }'">
Even if that's not ultimately the issue, how would I properly format the above in Thymeleaf?