Execute a processor after the evaluation of its children

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Execute a processor after the evaluation of its children

Thibault Duchateau
Hi,

Zemi just mentioned in another topic a nice trick allowing to execute a processor *after* its children.

Actually, I had to do the same with one of the Dandelion dialects but I did it manually, without thinking about a cleaner way as with the DelayedProcessorInvoker. :-)

To be a bit more precise, in my case, I would need to do something both *before* and *after* the evaluation of the children elements.

Wouldn't it be possible to integrate this directly in Thymeleaf?


Regards,
Thibault
Reply | Threaded
Open this post in threaded view
|

Re: Execute a processor after the evaluation of its children

Zemi
Administrator
Yes, I would love the processor execution chain to implement the intercepting filter design pattern in order to allow adding behavoir before and after execution.

However, I understand that this would require a major refactoring - rethinking so maybe it is something that we should suggest for future versions (maybe Thymeleaf 4, as Thymeleaf 3 roadmap is quite sketched by now).

Regards,
   Zemi