admin管理员组文章数量:1429064
I have a plex system that has a template. Unfortunately, I can't find where the template is being called. I would like to know all of the variables passed to the template when it was rendered. Is there a special mand I can use inside the double brackets? {{[something cool here]}}
Thanks.
I have a plex system that has a template. Unfortunately, I can't find where the template is being called. I would like to know all of the variables passed to the template when it was rendered. Is there a special mand I can use inside the double brackets? {{[something cool here]}}
Thanks.
Share Improve this question asked Sep 15, 2014 at 20:52 jasondeeganjasondeegan 1391 silver badge9 bronze badges 1-
1
Depending upon what exactly your data is like, here may be the answer you need and another relevant answer here. You could also send
this
to a customer helper and doconsole.log(JSON.stringify(arg)))
to see what the data is. – jfriend00 Commented Sep 16, 2014 at 7:16
1 Answer
Reset to default 4{{this}}
would do the trick. Maybe not very readable, but quick and easy
本文标签: javascriptHow do I get all available variables for a Mustache TemplateStack Overflow
版权声明:本文标题:javascript - How do I get all available variables for a Mustache Template? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745541765a2662525.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论