Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 30, 2010
1 parent 62a5cc4 commit 1efbf6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -71,7 +71,9 @@ Web development for humans, making hard things possible and everything fun.

@@ clock.html.ep
% my ($second, $minute, $hour) = (localtime(time))[0, 1, 2];
The time is <%= $hour %>:<%= $minute %>:<%= $second %>.
<%= link_to clock => begin %>
The time is <%= $hour %>:<%= $minute %>:<%= $second %>.
<% end %>

For more user friendly documentation see "perldoc Mojolicious::Guides"
and "perldoc Mojolicious::Lite".
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojolicious.pm
Expand Up @@ -347,7 +347,9 @@ Web development for humans, making hard things possible and everything fun.
@@ clock.html.ep
% my ($second, $minute, $hour) = (localtime(time))[0, 1, 2];
The time is <%= $hour %>:<%= $minute %>:<%= $second %>.
<%= link_to clock => begin %>
The time is <%= $hour %>:<%= $minute %>:<%= $second %>.
<% end %>
For more user friendly documentation see L<Mojolicious::Guides> and
L<Mojolicious::Lite>.
Expand Down

0 comments on commit 1efbf6a

Please sign in to comment.