I have this js function
import numberToWordsRu from 'number-to-words-ru';
function convert(number)
{
return numberToWordsRu.convert(number);
}
And I want to call it in th:text for passed argument. Something like this:
<p th:text="'This ' + ${param} + ' is ' + convert(${param})">
</p>
Is it possible and how it how to do it right?