How to get body of tag in processor for a custom dialect in Thymeleaf 3.0.x
问题 I recently wrote a custom dialect for thymeleaf 3.0.7 with a tag processor to merge a fragment with the custom tag's body. For example I have a fragment like this <!-- file fragments/myfrag.html --> <div th:fragment="content(header)"> <h1 th:text="${header}">Header 1</h1> <my:content/> <span>Some span</span> </div> And a custom tag like <my:merger my:mergefragment="fragments/myfrag :: content('Hello world')"> <h2>Header 2</h2> <button>Test</button> </my:merger> The result should be like <div>