Add a bit to views
This commit is contained in:
parent
e1c07606b5
commit
9c0d077266
|
@ -1,4 +1,3 @@
|
||||||
% layout 'default';
|
% layout 'default';
|
||||||
% title 'Welcome';
|
% title 'Home';
|
||||||
<h1>Welcome to the Mojolicious real-time web framework!</h1>
|
<h2>Welcome to the Mojolicious real-time web framework!</h2>
|
||||||
<p>Test my <%= link_to(Model => 'test') %></p>
|
|
||||||
|
|
|
@ -1,9 +1,22 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><%= title %></title>
|
<title>Guestbook-NG - <%= title %></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= content %>
|
<center>
|
||||||
|
<h1><%= title %></h1>
|
||||||
|
<!-- Nav table -->
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td><%= link_to Home => 'index' %></td>
|
||||||
|
<td> </td>
|
||||||
|
<td><%= link_to Test => 'test' %></td>
|
||||||
|
<td> </td>
|
||||||
|
<td><%= link_to Post => 'post' %></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<%= content %>
|
||||||
|
</center>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
% layout 'default';
|
% layout 'default';
|
||||||
% title 'test';
|
% title 'Test';
|
||||||
<h1>test page</h1>
|
<h2>test page</h2>
|
||||||
<% if ($method eq 'POST') { %>
|
<% if ($method eq 'POST') { %>
|
||||||
<p><%= $string %> at <%= $time =></p>
|
<p><%= $string %> at <%= $time =></p>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user