|
|
|
|
|
by jmduke
4887 days ago
|
|
I love this series. Can anyone give an example of when HAML would be used in the 'real world'? I can't imagine it filling a niche that isn't covered by any of the other templating languages: what would seem most ideal is a combination of say, Jinja and HAML. |
|
In HAML all you have to do is this...
- @items.each do |item|
===In ERB the equivalent would be...
<% @items.each do |item| %>
<% end %>===
It's a lot cleaner in HAML, especially extrapolated out over larger views.