Add a bit to views
This commit is contained in:
parent
e1c07606b5
commit
9c0d077266
@ -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>
|
||||
|
@ -1,9 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= title %></title>
|
||||
<title>Guestbook-NG - <%= title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
</html>
|
||||
|
@ -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 { %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user