Can you interpolate ruby variables within HAML css?
According to the HAML_REFERENCE I used this method:
- flavor = "raspberry"
#content
:textile
I *really* prefer _#{h flavor}_ jam.
to interpolate variables after :css
.module.modone{:class => "#{cycle("mod_#{extra.id}_")}"}
%h3 #{extra.title}
%p #{extra.description}
%a.btn-default{:href => "#", :target => "_top"} enter now
:css
.mod_#{extra.id}_ {
background-image: url("#{extra.image}");
background-color: #4073DF;
}