Limiting the scope of preprocessing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Limiting the scope of preprocessing

xtian
The following expression

th:text="'__black, __white'"

fails with the error

Could not parse as expression: "black, "

Shouldn't preprocessing be limited to thymeleaf curly expressions like __${xxx}__ and __#{yyy}__ ?
I mean, the PREPROCESS_EVAL pattern should check for "__${" not just "__" in my opinion.

The error is bound to happen frequently when using css BEM notation https://seesparkbox.com/foundry/bem_by_example