Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@klag
Copy link
Member

@klag klag commented Nov 7, 2024

No description provided.

}

embed Mustache as mustache
embed Console as Console
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You import and embed console but it's not used. Remove?

data:undefined ///< The data for the template
dir?:string ///< The directory in which to look for other templates (for partials)
recursionLimit?: int ///< Maximum limit for recursive calls in partials. Default is 100
partialsRecursionLimit?: int ///< Maximum limit for recursive calls specific for partials. Dafult is 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is exactly the difference between recursionLimit and partialsRecursionLimit? Is there another way to do recursion than using partials?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recursionLimit is the general count of recursive calls. partialsRecursionLimit is the limit in recurisve calls specifically for each partials. In case you have more recursive dependency among partials, you need both for determine the depth of the tree

@fmontesi fmontesi merged commit 5d19e66 into master Nov 13, 2024
6 checks passed
@fmontesi fmontesi deleted the fix/mustache-recursive-templates branch November 13, 2024 13:19
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

Successfully merging this pull request may close these issues.

3 participants