We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 063b464 commit 4f333beCopy full SHA for 4f333be
1 file changed
thymeleaf-layout-dialect/test/nz/net/ultraq/thymeleaf/layoutdialect/models/AttributeMergerTests.groovy
@@ -140,4 +140,22 @@ class AttributeMergerTests extends Specification {
140
div('th:with': "value1='Hello!',value2='World!'")
141
}
142
143
+
144
+ def "Parses declarations with '=' symbols in them"() {
145
+ given:
146
+ def source = modelBuilder.build {
147
+ div('th:with': "isA=\${ a == b ? true : false}")
148
+ }
149
+ def target = modelBuilder.build {
150
+ div('th:with': "message='Hello!'")
151
152
153
+ when:
154
+ def result = attributeMerger.merge(target, source)
155
156
+ then:
157
+ result == modelBuilder.build {
158
+ div('th:with': "isA=\${ a == b ? true : false},message='Hello!'")
159
160
161
0 commit comments