Closed tysongach closed 4 years ago
Personally, I don't have a problem with HAML, and like that I don't have to worry about closing tags. Any particular reasons you find HAML hard to work with?
@gylaz Two reasons primarily:
Have you seen Rails’ new-ish tag
method? It’s wonderful and, often, makes for a nice compact template file (no need to close the tag, either, if you don’t open a block):
Haml:
.flash{ class: key }
= value
ERB:
<%= tag.div value, class: "flash #{key}" %>
Thanks for explanation @tysongach. I don't have a strong opinion here. @salbertson WDYT?
@tysongach @gylaz sorry for the slow response. I'm totally ok with ditching Haml and using ERB going forward.
What do we think about starting to use ERB instead of Haml from here on out? I find Haml hard to work with and Rails’ new-ish
tag
method can help a lot with view density…