Say I wish to print the current directory as a list. The recommended method of doing this in the 3 books I've looked at is
<ul>
<% for file in Dir.glob('*') %>
<li><%= file %> <li/>
<% end %>
</ul>
I think this looks rather clumsy. I'd like to do something like
<ul>
<%
for file in Dir.glob('*')
xxx "<li>" + file + "<li/>"
end
%>
</ul>
What I'd like to know is what xxx is called. What I'd like to avoid is having lots of <% and %> all over the place.