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
If I have the following code :
{{#personLink}}{{#person}}{{name}}{{/person}}{{/personLink}}
I get the error
"Unclosed section: person"
I have to use
{{#personLink}} {{#person}}{{name}}{{/person}} {{/personLink}}
with spaces for it to work good.
By the way "Unclosed section: person" does not help enougth
I had to change line 566 by
try{
return nestTokens(tokens);
}catch(e){
throw new Error(e+" "+template);
}
to help me finding what was wrong and where
The text was updated successfully, but these errors were encountered:
I'm not able to reproduce this issue. In a node console I can run:
> var p = mustache.parse('{{#personLink}}{{#person}}{{name}}{{/person}}{{/personLink}}')
undefined
> JSON.stringify(p)
'[["#","personLink",0,15,[["#","person",15,26,[["name","name",26,34]]]]]]'
Please provide more information about how you're calling the function.
Here is the bug
Mustache.to_html(
'{{#personLink}}{{#person}}{{name}}{{/person}}{{/personLink}} ',
{
personLink:function(){
return function(text,render){
return "a"+render(text)+"/a";
};
},
person : {name : 'me'}
}
);
it causes Error: Unclosed section: 'person' {{#person}}{{name}}
If I use '{{#personLink}} {{#person}}{{name}}{{/person}} {{/personLink}} '
I have the expected result a me /a (with spaces)
If I have the following code :
{{#personLink}}{{#person}}{{name}}{{/person}}{{/personLink}}
I get the error
"Unclosed section: person"
I have to use
{{#personLink}} {{#person}}{{name}}{{/person}} {{/personLink}}
with spaces for it to work good.
By the way "Unclosed section: person" does not help enougth
I had to change line 566 by
try{
return nestTokens(tokens);
}catch(e){
throw new Error(e+" "+template);
}
to help me finding what was wrong and where
The text was updated successfully, but these errors were encountered: