我希望能够捕获并检查 Assemble.io 中的 Handlebars 正在解析的所有对象
。理想情况下在 Google Chrome 开发者工具中,就像我检查任何其他 JavaScript 一样。有什么想法吗?
最佳答案
您可以使用Assemble's logging helpers在构建时将对象转储到控制台。这将在服务器上进行,不会报告给 Chrome 开发工具。
<!-- Dump entire 'this' context -->
{{debug}}
<!-- Log string -->
{{log "hello, logging"}}
关于javascript - 如何调试 assemble.io(最好在 Chrome 控制台中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28763607/