16 lines
311 B
Plaintext
16 lines
311 B
Plaintext
<%
|
|
user = 'Erubis'
|
|
list = ['<aaa>', 'b&b', '"ccc"']
|
|
%>
|
|
<p>Hello <%= user %>!</p>
|
|
<table>
|
|
<tbody>
|
|
<% list.each_with_index do |item, i| %>
|
|
<tr bgcolor="<%= i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>">
|
|
<td><%= i + 1 %></td>
|
|
<td><%== item %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|