Tip: While using Haml, take care of nesting

by currentricity

While using Ruby code in Haml one has to take care of nesting and indentation in loops.

This is wrong:

- for thing in @array
= array['something']
and will result in
"syntax error, unexpected kENSURE, expecting kEND"
This is right:

- for thing in @array
  = array['something']

and will result in happiness. The indentation matters.

Advertisements