我使用 webstorm 来处理玉。它工作得很好,但是当我为 knockoutjs 制作模板时:
script(type="text/html", id="my_template-id")
jade syntax here
因此,此类模板中的玉没有正确突出显示。我如何让 WebStorm 明白,这也是一块玉?
我使用 webstorm 来处理玉。它工作得很好,但是当我为 knockoutjs 制作模板时:
script(type="text/html", id="my_template-id")
jade syntax here
因此,此类模板中的玉没有正确突出显示。我如何让 WebStorm 明白,这也是一块玉?
这是一个问题,请投票:
The issue tracker claims this to be fixed but it is not. Here is a workaround (mixin must come before script):
mixin testTemplate
span(ng-click="doSomething()") click me
h1 Markup here is working
script(type="text/ng-template", id="template.html")
+testTemplate()