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
{{##def.s:
{{~it.show:v:i}}xx{{=v.a}}{{~}}{{? it.data.length!=0}}{{~it.data}}{{out+=partText(v);}}//this is very importemt{{~}}{{?}}
#}}{{#def.s}}varpartText=doT.template(parttmpl.text);
I think you should add this surport,dont like me
The text was updated successfully, but these errors were encountered:
@jiuker to implement recursive templates with doT you need to pass compiled template function as a property of a context object.
So instead of {{ out +=partText(v);}} you would {{= it.partText(v);}} ({{= and {{ out+= is the same, the former is how it usually used) and when you call template you need to assign template function to a property of data you pass to template.
if we have a data that is like this:
but it has unkown floors,
now I do like this:
I think you should add this surport,dont like me
The text was updated successfully, but these errors were encountered: