guestbook-ng/templates/index.html.ep

21 lines
338 B
Plaintext
Raw Normal View History

2021-12-04 05:11:37 +00:00
% layout 'default';
2021-12-05 04:51:38 +00:00
% title 'Home';
<h2>Messages from the World Wide Web</h2>
<% for my $row (reverse @$posts) { %>
<table>
<tr>
<th>Date:</th>
<td><%= @$row[0] %></td>
</tr>
<tr>
<th>Name:</th>
<td><%= @$row[1] %></td>
</tr>
<tr>
<th>Message:</th>
<td><%= @$row[2] %></td>
</tr>
</table>
<br>
<% } %>