I am having trouble understanding how to combine literal text ("by" in
the example below) with the result of a ruby expression. How would I
write the rhtml listed below as haml?
<h2>by <%= @book.authors.map{|a| a.name}.join(", ") %></h2>
expected output
by John Doe, Jane Doe
Also how do I suppress a new line ( -%> ) as in the following rhtml
in haml?
<% 3.times do -%>
Thanks,
Bernie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---