I was evaluating Slim as a replacement for HAML in a personal project, and it doesn\'t appear to handle HTML5 data attributes as gracefully as
I prefer this kind to fix...
@products.each do |product| .module data-id=product.id
It is working for me