Preprocessing

Proprocessing wird benötigt, um eine Expression zu modifzieren, noch bevor sie ausgeführt wird.

Preprocessed expressions are exactly like normal ones, but appear surrounded by a double underscore symbol (like __${expression}__ )

Ein Beispiel:Im Message.properties wird eine Variable zurückgegeben:

[email protected]@translateToSpanish({0})

und im HTML Code wird Pre-Processing verwendet:

<p th:text="${__#{article.text('textVar')}__}">Some text here...</p>

-> nur so kann die Expression richtig aufgelöst werden, weil zuerst der Ausdruck mit der Preprocessing-Syntax aufgelöst wird.

results matching ""

    No results matching ""