我在EJS文件中使用Beautify时的快捷方式(带括号)

时间:2017-11-10 15:58:55

标签: html ejs brackets

我的括号和EJS有问题。

我使用Beautify时的代码:

 <% if ( message ) { %>
     <%= message1 %>
 <% } else { %>
     <%= message2 %>
 <% } %>

但我想要这个:

compute_limits = novaClient.limits.get().absolute
for s in compute_limits:
    print s.name + " = " + str(s.value)
你知道怎么样? 斯威夫特非常难看。

非常感谢。

1 个答案:

答案 0 :(得分:0)

我找不到解决方案,但我会使用ng-show-if of angularjs。