Re: nice framework! two questions: dom selector and th:with
For #1, you won't be able to do that with any of the standard Thymeleaf attribute processors. You'll need to develop an your own attribute processor in an extension ("dialect" in Thymeleaf speak) to do that.
For #2, is fragDir the name of a template? th:substituteby uses the following syntax:
th:substituteby="template_name [:: fragment_name]" (template_name required, fragment_name optional with a :: separating the 2)
template_name should end-up referring to an HTML file, and if you don't specify a fragment_name, then the entire file will replace the th:substituteby tag.