简体   繁体   English

如何使Ember模板错误更详细?

[英]How do I make Ember Template Errors Verbose?

Currently, if you have an error in your handlebars/HTMLBars, there is a silent failure and instead of outputting html you get <!----> . 当前,如果您在handlebars / HTMLBars中有错误,则是无提示的失败,而不是输出html,而是得到<!---->

Is there a way to get an error message in the console or something to tell me what is wrong? 有没有办法在控制台中获得错误消息,或者有什么方法可以告诉我出什么问题了?

An example: http://emberjs.jsbin.com/fumacemero/edit?html,js,output (I know what the error is, I want to figure out how to get an error message from Ember/HTMLBars) 示例: http ://emberjs.jsbin.com/fumacemero/edit?html,js,output(我知道错误是什么,我想弄清楚如何从Ember / HTMLBars获取错误消息)

You can use something like this: 您可以使用如下形式:

https://github.com/rwjblue/ember-cli-template-lint https://github.com/rwjblue/ember-cli-template-lint

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM