我正在尝试在Jade HTML输出中为子标记获取单个换行符。我已经在使用--pretty
选项进行编译。
如果我使用:
h1.neighborhood
|<%= neighborhood %>
我明白了:
<h1 class="neighborhood"><%= neighborhood %></h1>
另一方面,如果我使用(顶线后面的空格)
h1.neighborhood
<%= neighborhood %>
我明白了:
<h1 class="neighborhood">
<%= neighborhood %>
</h1>
荒诞。我怎么得到这个?
<h1 class="neighborhood">
<%= neighborhood %>
</h1>