Re: Feature question FM2 / FM3: Hook into loops

2017-02-23 Thread Christoph Rüger
Thanks, good stuff. 2017-02-24 6:29 GMT+01:00 Jacques Le Roux : > +1 for timeout > > Jacques > > > > Le 24/02/2017 à 01:12, Daniel Dekany a écrit : > >> There's a hidden feature in FreeMarker 2 that allows templates be >> interrupted with Thread.interrupt(). This can be used to limit the >> templ

Re: Feature question FM2 / FM3: Hook into loops

2017-02-23 Thread Jacques Le Roux
+1 for timeout Jacques Le 24/02/2017 à 01:12, Daniel Dekany a écrit : There's a hidden feature in FreeMarker 2 that allows templates be interrupted with Thread.interrupt(). This can be used to limit the template execution time (one thread processes the template, the other waits for it to finis

Re: Feature question FM2 / FM3: Hook into loops

2017-02-23 Thread Daniel Dekany
There's a hidden feature in FreeMarker 2 that allows templates be interrupted with Thread.interrupt(). This can be used to limit the template execution time (one thread processes the template, the other waits for it to finish with a timeout, and then interrupts the template processing thread). To s

RE: Feature question FM2 / FM3: Hook into loops

2017-02-23 Thread Mickel Daelmans | Add to Favorites
glist Onderwerp: Feature question FM2 / FM3: Hook into loops We would like to hook into loops (<#list>) to e.g. count the number of iterations and react based on some business conditions. For example stop with an Exception after 10k iterations. I would think about some kind of callback which w

Feature question FM2 / FM3: Hook into loops

2017-02-23 Thread Christoph Rüger
We would like to hook into loops (<#list>) to e.g. count the number of iterations and react based on some business conditions. For example stop with an Exception after 10k iterations. I would think about some kind of callback which we can register which is called by freemarker inside <#list> itera