LEGACYHTML5 - Thymeleaf is adding tags that are breaking my design

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

LEGACYHTML5 - Thymeleaf is adding tags that are breaking my design

Fearghal
Hi,

I have Thymeleaf trying to include a header fragment on each page, but the header includes a sidebar and the html tags in the fragment are not balanced itself, but when its included in the main page they would be.

It looks like Thymeleaf if balancing the tags BEFORE its including the header which is not what I want it to do. It's easy enough to include a nav bar, but I have a sidebar which the main page content is wrapped inside.

Am i right in assuming its trying to balance the fragments HTML tags? If so can I stop it from doing that?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: LEGACYHTML5 - Thymeleaf is adding tags that are breaking my design

Zemi
Administrator
Hello,

yes, the legacy HTML mode works by balancing tags automatically.

You can try Thymeleaf 3 (beta) that can manage any kind of non well-formed markup.

Regards,
  Zemi

Reply | Threaded
Open this post in threaded view
|

Re: LEGACYHTML5 - Thymeleaf is adding tags that are breaking my design

Fearghal
Hi,

Does the beta work with Spring boot?
Reply | Threaded
Open this post in threaded view
|

Re: LEGACYHTML5 - Thymeleaf is adding tags that are breaking my design

Zemi
Administrator
No, I am sorry about that.

Thymeleaf 3 beta is really stable but the integration with Spring Boot is not ready yet.

Regards,
  Zemi

Reply | Threaded
Open this post in threaded view
|

Re: LEGACYHTML5 - Thymeleaf is adding tags that are breaking my design

Fearghal
No problem, have just removed the side bar for now.

Thanks