Add a bit to views

This commit is contained in:
swag 2021-12-04 23:51:38 -05:00
parent e1c07606b5
commit 9c0d077266
3 changed files with 19 additions and 7 deletions

View File

@ -1,4 +1,3 @@
% layout 'default';
% title 'Welcome';
<h1>Welcome to the Mojolicious real-time web framework!</h1>
<p>Test my <%= link_to(Model => 'test') %></p>
% title 'Home';
<h2>Welcome to the Mojolicious real-time web framework!</h2>

View File

@ -1,9 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<title>Guestbook-NG - <%= title %></title>
</head>
<body>
<%= content %>
<center>
<h1><%= title %></h1>
<!-- Nav table -->
<table>
<tr>
<td><%= link_to Home => 'index' %></td>
<td>&nbsp;</td>
<td><%= link_to Test => 'test' %></td>
<td>&nbsp;</td>
<td><%= link_to Post => 'post' %></td>
</tr>
</table>
<%= content %>
</center>
</body>
</html>

View File

@ -1,6 +1,6 @@
% layout 'default';
% title 'test';
<h1>test page</h1>
% title 'Test';
<h2>test page</h2>
<% if ($method eq 'POST') { %>
<p><%= $string %> at <%= $time =></p>
<% } else { %>