Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] - Limit recursion to a specific depth #167

Open
agentgt opened this issue Dec 22, 2023 · 1 comment
Open

[FR] - Limit recursion to a specific depth #167

agentgt opened this issue Dec 22, 2023 · 1 comment

Comments

@agentgt
Copy link
Contributor

agentgt commented Dec 22, 2023

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.

@samskivert
Copy link
Owner

Sounds reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants