You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var output = Mustache.render(tpl, data, {rec: tpl});
console.log(output);
after digging into the source, I found out that it's the context lookup which leads the error.
In my test, the available way is to add a list: [] property to every leaf node, but that's not what the server will return.
how to solve the problem ?
by using .list as a block tagname, it's meaning lookup just the current context, and also, it's reasonable sematically.
as to make it work, just add a few code around line 383: names = name.split('.'), since '.list'.split('.') we get ["", "list"], just remove the empty one and we can get it work !
The text was updated successfully, but these errors were encountered:
We still haven't started working into having a Plugin API or any kind of support for pragmas, but we'll take ANCHORED-DOT into account once we do so. Thanks for reporting! And thanks @bobthecow!
I got mustache today and it amazed me !
but when I'm trying to generate a tree, I went a problem.
this is the code that leads a
max stack exceeded
error:var output = Mustache.render(tpl, data, {rec: tpl});
console.log(output);
after digging into the source, I found out that it's the context lookup which leads the error.
In my test, the available way is to add a
list: []
property to every leaf node, but that's not what the server will return.how to solve the problem ?
the following syntax is what make it good:
by using
.list
as a block tagname, it's meaning lookup just the current context, and also, it's reasonable sematically.as to make it work, just add a few code around
line 383: names = name.split('.')
, since'.list'.split('.')
we get["", "list"]
, just remove the empty one and we can get it work !The text was updated successfully, but these errors were encountered: