-
Notifications
You must be signed in to change notification settings - Fork 16
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
Recursive partials:: Uncaught RangeError: Maximum call stack size exceeded #14
Comments
I don't know if hogan supports recursive partials (probably not). So this issue should not be related to the plugin. |
There is a test in hogan.js git for recursive partials.. - just tested in on my machine and it works - https://github.com/twitter/hogan.js/blob/936e00f1e60c8b7a0100c64c6ea031e290c75a32/test/index.js |
I copied in the recursive test and tried it but failed with the same error - //data
var list = {
list: [
{ foo: 1 },
{ foo: 2 },
{ foo: 3, sub: { list: [{ foo: 4, sub:false }, { foo: 5, list:[], sub:true }] } }
]
};
//gen tpl
dTpl = documentsTpl(
list
,{
folderList: folderList.template
}); //documentsTpl.mustache
{{#list}}
{{foo}} >
{{#sub}}
{{> folderList}}
{{/sub}}
{{/list}}
//folderList.mustache
Start > {{> folderList}} Should output |
millermedeiros Any thoughts? - recursive partials work direct with hoganjs without the requirejs plugin.. |
maybe it doesn't work because the recursive partial uses some property that we are not included on the |
Getting an error when trying to attempt recursive partials is this a bug?
hogan.js:321
Uncaught RangeError: Maximum call stack size exceeded
It generates first level "User Folder" and then errors -
Thanks
The text was updated successfully, but these errors were encountered: