2012年6月26日火曜日

Hamlで「Illegal nesting: content can't be both given on the same line as..」発生


Hamlで、th 要素+固定文字列表記の後ろに span要素追加しようとした時、
「Illegal nesting: content can't be both given on the same line as..」エラー発生

(NG)
%th.title 氏名
  %span.required_item_symbol *

(OK)
%th.title
  氏名
  %span.required_item_symbol *