jmustache icon indicating copy to clipboard operation
jmustache copied to clipboard

[FR] - Limit recursion to a specific depth

Open agentgt opened this issue 6 months ago • 1 comments

Mustache allows recursive partials and JMustache supports this but for many this can be dangerous especially if JMustache is used to render user templates.

Currently I believe the only depth limit is the actual Java method stack depth limit or in other words StackOverflow.

I believe a simple options of depth limit would be a nice feature for JMustache to have. I'm happy to submit a PR @samskivert this coming year.

agentgt avatar Dec 22 '23 14:12 agentgt

Sounds reasonable.

samskivert avatar Dec 22 '23 16:12 samskivert