guestbook-ng/templates/test.html.ep
2021-12-04 23:51:38 -05:00

14 lines
316 B
Plaintext

% layout 'default';
% title 'Test';
<h2>test page</h2>
<% if ($method eq 'POST') { %>
<p><%= $string %> at <%= $time =></p>
<% } else { %>
<form action="/test" method="post">
<label>Give me string:<br>
<input type="text" name="string"></label><br>
<br>
<input type="submit" value="Submit">
</form>
<% } %>