I am in need of a sequence of classes, such as .module1, .module2, ... module(n).
My goal is to specify these classes using css, ruby, and HAML:
:css
.mod1 {
background-image: url("#{extra.image}");
}
Can I use Ruby variables to streamline this process?
.module.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}");
}