Ruby Slim - How do you define an element's class with a rails helper or variable?
How about
div[class="sample #{@variable.name}"]
or even
div class=["sample", @variable.name]
or
.sample *{:class => [@variable1.name, @variable2.name]}
You can use parentheses, curly braces or just a space
.first-class(class="second-class-#{ruby_call}")
.first-class *{class: "second-class-#{ruby_call}"}
.first-class class="second-class-#{ruby_call}"