title: Calling javascript function on thymeleaf th:text template
body: <p>I am trying to attach returned text value of javascript function to thymeleaf th:text template. </p>
  
  <p>Binding javascript function with <code>th:onclick</code> is possible. </p>
  
  <p>Binding javascript function with <code>th:text</code> is possible? </p>
  
  <p>I do not know whether it is possible or not.</p>
  
  <p>Any suggestion? </p>
  
  <pre><code>Filename = Abcdefghijklmnopqrstuvwxyz.jpeg
  
  function callBack (fiuleName) {
      // some logic
      return Abcde….jpeg
  };
  </code></pre>
  
  <p><code>file.getFileName()</code> gives fileName.</p>
  
  <pre><code>&lt;span th:id="filename" th:text=“callBack(${file.getFileName()})”&gt;&lt;/span&gt;
  </code></pre>
  
  <p>span tag is in the loop. </p>
  
  <p>I want to use callBack function with th:text.</p>