why adding a simple div to HAML will break the code?

Posted by Jian Lin on Stack Overflow See other posts from Stack Overflow or by Jian Lin
Published on 2010-06-03T19:24:40Z Indexed on 2010/06/03 19:34 UTC
Read the original article Hit count: 175

Filed under:

it is quite strange that the following works:

- 1.upto(30) do |i|
  = i
  %br

but the following won't:

%div this line
  - 1.upto(30) do |i|
    = i
    %br

Isn't the second part just to add a div and let the numbers go into that div?

© Stack Overflow or respective owner

Related posts about haml