Skip to content

Instantly share code, notes, and snippets.

@romach
Created April 22, 2017 14:25
Show Gist options
  • Save romach/10081ba3e24ffc9f75aadada7df80df8 to your computer and use it in GitHub Desktop.
Save romach/10081ba3e24ffc9f75aadada7df80df8 to your computer and use it in GitHub Desktop.

Revisions

  1. romach created this gist Apr 22, 2017.
    5 changes: 5 additions & 0 deletions concatenate-strings-in-thymeleaf.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <p th:text="${bean.field + '!' + bean.field}">Static content</p>

    th:text="'static part' + ${bean.field}"

    th:text="${'static part' + bean.field}"