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
Asked
Active
Viewed 390 times
0

Ghayathri
- 11
- 4
-
1http://html2haml.heroku.com/ – apneadiving May 29 '13 at 12:09
-
Thank you .. Awesome Link .. I can learn easily – Ghayathri May 29 '13 at 12:13
1 Answers
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