guestbook-ng/templates/test.html.ep

14 lines
300 B
Plaintext
Raw Normal View History

2021-12-04 02:26:25 -05:00
% layout 'default';
% title 'test';
<h1>test page</h1>
<% if ($method eq 'POST') { %>
<p><%= $string %></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>
<% } %>