HAML indentation problem IF
Posted
by Pieter Demoor
on Stack Overflow
See other posts from Stack Overflow
or by Pieter Demoor
Published on 2010-06-03T09:12:38Z
Indexed on
2010/06/03
9:14 UTC
Read the original article
Hit count: 215
This is my code:
[email protected] do |a|
-if @i%3 == 0
%ul
%li=link_to a.name, a
-@i += 1
I need the li to be inside the ul which is inside the if-statement. I can't do it because of the indentation. Can't I just tell the li to indent automatically?
Thanks
© Stack Overflow or respective owner