guestbook-ng/templates/test.html.ep

14 lines
316 B
Plaintext
Raw Normal View History

2021-12-04 07:26:25 +00:00
% layout 'default';
2021-12-05 04:51:38 +00:00
% title 'Test';
<h2>test page</h2>
2021-12-04 07:26:25 +00:00
<% if ($method eq 'POST') { %>
2021-12-04 23:36:10 +00:00
<p><%= $string %> at <%= $time =></p>
2021-12-04 07:26:25 +00:00
<% } 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>
<% } %>