我想要的是什麼在「如果」和什麼在「其他」包括#主塊。有條件的哈姆 - 如果其他嵌套
- if @transparency
#content-inner{:style => "background: url(../../../images/illustrations/" + @transparency + ") no-repeat 88% 50%"}
- else
#content-inner
#main-block
目前發生的是,如果@transparency
定義,#main-block
沒有嵌套在#content-inner
。
看起來像相同的職位 - http://stackoverflow.com/questions/1451794/haml-if-else-error - 雖然他們似乎得到一個答案,除了重複 – 2009-11-16 13:40:47