guestbook-ng/templates/test.html.ep

14 lines
316 B
Plaintext
Raw Normal View History

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