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.
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.