Consider Thymesheet files with duplicate attributes, like:
a {
th-class: "firstClass";
th-class: "secondClass";
}
or, even something like:
a {
th-class: "firstClass";
}
* {
th-class: "secondClass";
}
More than once I have seen people expect this sort of thing to work (by expecting ThymeLeaf/Sheet to combine the attributes), but instead only the last attribute that applies to an element will be used, and the others ignored.
I think both of the above cases should result in exceptions (and they will probably require different bits of code to be changed to implement each of them). Do you agree?
Consider Thymesheet files with duplicate attributes, like:
or, even something like:
More than once I have seen people expect this sort of thing to work (by expecting ThymeLeaf/Sheet to combine the attributes), but instead only the last attribute that applies to an element will be used, and the others ignored.
I think both of the above cases should result in exceptions (and they will probably require different bits of code to be changed to implement each of them). Do you agree?