instiki/vendor/plugins/erubis/test/data/users-guide/notext-example.eruby
2010-07-04 08:51:53 -05:00

14 lines
278 B
Text

<h3>List</h3>
<% if !@list || @list.empty? %>
<p>not found.</p>
<% else %>
<table>
<tbody>
<% @list.each_with_index do |item, i| %>
<tr bgcolor="<%= i%2 == 0 ? '#FFCCCC' : '#CCCCFF' %>">
<td><%= item %></td>
</tr>
<% end %>
</tbody>
</table>
<% end %>