0

I'm very new to haml . I'm able to convert some of the basic html to haml but I coudn't find any answer for the following how to convert <%= raw(event_calendar) %> in haml .. and also say the website where i can learn haml completely

Ghayathri
  • 11
  • 4

1 Answers1

0

There is nothing much to learn in haml. Below is an eg. It is self explanatory. Some thing to note is that there are no end/closing tags, indentation is used instead

erb:

<% @articles.each do |article| %>
  <span class='myArticle' data-article-id='<%= article.id %>'>
    <%= article.name %>
  </span>
<% end %>

haml:

- @articles.each do |article|
  %span.myArticle{"data-article-id" => article.id}
    = article.name