Haml::SyntaxError in Static#home?
Posted
by Koning Baard
on Stack Overflow
See other posts from Stack Overflow
or by Koning Baard
Published on 2010-06-15T14:45:52Z
Indexed on
2010/06/15
14:52 UTC
Read the original article
Hit count: 275
I have this Haml:
#index-header
%h1 Supersonic Mac Software.
%p Some motto
%h1 Our Software
%p Which will once becoume your's
.third-column
%h2 Product 1
%p LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL
.third-column
%h2 Product 2
%p LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL
.third-column
%h2 Product 3
%p LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL LOL
And I get this error:
Haml::SyntaxError in Static#home
Showing app/views/static/home.html.haml where line #5 raised:
Illegal nesting: content can't be both given on the same line as %h1 and nested within it.
What am I doing wrong? Thanks.
© Stack Overflow or respective owner