Here’s my Haml code:
%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}
when I enter haml example.haml example.html, I get the following error:
Syntax error on line 5: Illegal nesting: content can't be both given on the same line as %table and nested within it.
What am I doing incorrectly?
You need to remove the spaces between the tags and the braces, like so: