17 lines
324 B
Plaintext
17 lines
324 B
Plaintext
<%
|
|
my $user = 'Erubis';
|
|
my @list = ('<aaa>', 'b&b', '"ccc"');
|
|
%>
|
|
<p>Hello <%== $user %>!</p>
|
|
<table>
|
|
<tbody>
|
|
<% $i = 0; %>
|
|
<% for $item (@list) { %>
|
|
<tr bgcolor=<%= ++$i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>">
|
|
<td><%= $i %></td>
|
|
<td><%== $item %></td>
|
|
</tr>
|
|
<% } %>
|
|
</tbody>
|
|
</table>
|