I have a somewhat related question
Could I use this technique to conditionally nest some content? I'm
sorry if this is obvious from the last response, but I didn't get it
yet.
I want to render some columns and in the controller I determine how
many items should be in each column.
the markup I am trying to get is someting like
%div#col_0
ul.group
li.item
li.item
li.item
ul.group
li.item
li.item
%div#col_1
ul.group
li.item
ul.group
li.item
li.item
from index.html.haml I am calling render :partial on group and from
that partial I render :partial item
So I need to be able to conditionally start / end the column div in
the group partial.
How should I go about this?
Thanks,
Noel