【发布时间】:2011-12-05 20:31:07
【问题描述】:
这是我的 Haml 代码:
%html
%head
%body
%table {'width' => 638, 'border' => 0, 'cellpadding' => 0, 'cellspacing' => 0}
%tr
%td {'width' => 27, 'height' => 100}
%td {'width' => 582, 'height' => 100}
%td {'width' => 29, 'height' => 100}
当我输入haml example.haml example.html 时,我收到以下错误:
Syntax error on line 5: Illegal nesting: content can't be both given on the same line as %table and nested within it.
我做错了什么?
【问题讨论】:
标签: haml