I've made some progress on my previous question but while working on it I've come across a problem with fragments. I think I might just be misunderstanding what is accessible from within a fragment's context.
I can use literals or variables when calling the fragment, but I can't find a way to pass a variable from a "th:each" loop. What am I missing?
In the following, the two first examples will go through but the third one will give an error.
I'm afraid the changes in these new files have probably broken the fragment processing in your dynamic template processing code (e.g. the thymol.processChildren function now takes the fragment root element as an argument). But hopefully, you'll be able to work these out easily enough.
Please let me know how the new build works for you.