I am converting my ERB template to a HAML template.
<p> Welcome to <span><%= name1 %> </span>, <span> <%= name2 %></span> and <span><%= name3 %></span>. </p>
Here is what I came up with
%p Welcome to %span= name1 , %span= name2 and %span= name3 .
I have a feeling that there is a much more elegant way to do this.
ruby-on-rails haml
Harish shetty
source share