Implemented fortune
This commit is contained in:
parent
13b91c8ad3
commit
eb74988c1e
@ -3,7 +3,6 @@ body {
|
||||
background: #000;
|
||||
margin: 8px;
|
||||
color: #00FF00;
|
||||
font: normal 16px/20px Courier, Courier New, monospace;
|
||||
}
|
||||
|
||||
a {
|
||||
|
@ -108,7 +108,7 @@
|
||||
+--------------------------+<br>
|
||||
</div>
|
||||
<div class="inner">
|
||||
<!--#include virtual="/cgi-bin/fort.cgi" -->
|
||||
<code><pre><%= $fortune %></pre></code>
|
||||
</div>
|
||||
<div class="outer">
|
||||
+--------------------------+<br>
|
||||
@ -121,19 +121,8 @@
|
||||
<div class="outer">
|
||||
+--------------------------+<br>
|
||||
</div>
|
||||
<div class="inner" id="guest">
|
||||
<p>Please sign the guestbook and let SwaggNet know what you <em>really</em>
|
||||
think.</p>
|
||||
<a href="/cgi-bin/guest.cgi">
|
||||
<img alt="Sign the Guestbook!" src="/Pictures/guest.gif">
|
||||
</a>
|
||||
</div>
|
||||
<br>
|
||||
<div class="outer">
|
||||
+--------------------------+<br>
|
||||
</div>
|
||||
<div class="inner">
|
||||
<!--#include virtual="/cgi-bin/count.cgi" -->
|
||||
<p>TODO: visitor count goes here</p>
|
||||
</div>
|
||||
<div class="outer">
|
||||
+--------------------------+<br>
|
||||
|
@ -4,8 +4,9 @@ use Mojolicious::Lite;
|
||||
|
||||
get '/' => sub {
|
||||
my ($c) = @_;
|
||||
my $fortune = `fortune`;
|
||||
|
||||
$c->render()
|
||||
$c->render(fortune => $fortune)
|
||||
} => 'index';
|
||||
|
||||
app->start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user