Limit FreeMarker Template Execution Time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Limit FreeMarker Template Execution Time

Sam Dengler
Is it possible to guard against excessive template execution time?

I was looking for something similar to what the Rhino Javascript Engine provides: http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/ContextFactory.html

I've been unable to find a means of sandboxing template execution to protect against an infinite loop in a FreeMarker template.

Any and all advice is much appreciated!  Thanks.

Sam