Skip to content

Using == in a th:with tag on the body element when a layout also has a th:with tag doesn't work #244

@lifeweaver

Description

@lifeweaver

First off thank you for writing this library, it's helpful.

thymeleaf-layout-dialect version 3.3.0 in an application using Spring.

Example "isA = ${ a == b ? true : false}" results in the VariableDeclaration's name being "isA" and the value being "${ a ", which is incorrect.

If the above expression is modified to us 'eq" vs '==' it works fine. The issue also holds true with "!=".

Seems like all equal signs are split not just the first one. (From the VariableDeclaration object):
(name, value) = assignation.stringRepresentation.split('=')

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions