最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How do I get all available variables for a Mustache Template? - Stack Overflow

programmeradmin0浏览0评论

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 do console.log(JSON.stringify(arg))) to see what the data is. – jfriend00 Commented Sep 16, 2014 at 7:16
Add a ment  | 

1 Answer 1

Reset to default 4

{{this}} would do the trick. Maybe not very readable, but quick and easy

发布评论

评论列表(0)

  1. 暂无评论