twitter bootstrap - Having a difficult time understanding indentation for HAML -
i've been trying learn haml putting simple middleman app, keep running syntax error. i'm using bootstrap theme , followed video tutorial, seems i'm running "illegal nesting" problems.
.container .jumbotron %blockquote %p lorem ipsum dolor sit amet, consectetur adipiscing elit. integer posuere erat ante. %small famous in %cite{:title => "source title"} source title
"haml::syntaxerror @ / illegal nesting: content can't both given on same line %p , nested within it."
i've been messing around try , understand how identation works, have no clue. can make blockquote show if dont have container.
advice please!
.container .jumbotron %blockquote %p lorem ipsum dolor sit amet, consectetur adipiscing elit. integer posuere erat ante. %small famous in %cite{:title => "source title"} source title
rule of thumb: if element has childs, shouldn't have text on same line
p.s. recommend 2 spaces indentation
Comments
Post a Comment