I am trying to include the same bit of html into various pages. This template is a table that displays data from the database. I know Thymeleaf has fragments, but as far as I can tell I can't include a fragment with its own controller, which my template will need so it can retrieve the necessary data.
I have seen this question, but this template can be called multiple times on the same page and adding that many attributes to the Model does not seem like the correct solution(not to mention that the attribute names need to be unique).
Is there any way to include this template in Thymeleaf so it has its own controller separate from the page it is included too.