新手问题 haml 里,一行可以写多个标签吗?

scige · October 30, 2012 · Last by cckkll replied at December 26, 2014 · 2007 hits

haml 里,一行可以写多个标签吗?比如下面的 HTML 代码

<span class="word">价值</span><span class="num">¥252</span>

如果分开两行写感觉很不直观

.word 价值
.num ¥252

应该是不可以的,没有见过这样的用法。

%span.word 价值 ¥252

You need to Sign in before reply, if you don't have an account, please Sign up first.