How can I write this code in haml without repeating the render line?
- if i % 2 == 0 %section.wrapper-md.list = render partial: 'property'- else %section.wrapper-md.list.background-gray = render partial: 'property'
Thanks!!
Aucun commentaire:
Enregistrer un commentaire