Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed typo in Mojo::Template example
  • Loading branch information
kraih committed Jan 14, 2015
1 parent 4dc7887 commit f8776a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Template.pm
Expand Up @@ -306,12 +306,12 @@ Mojo::Template - Perl-ish templates!
say $output;
# More advanced
my $output = $mt->render(<<'EOF', 23, 'foo bar');
% my ($num, $text) = @_;
my $output = $mt->render(<<'EOF', 23, 'More advanced');
% my ($num, $title) = @_;
%= 5 * 5
<!DOCTYPE html>
<html>
<head><title>More advanced</title></head>
<head><title><%= $title %></title></head>
<body>
test 123
foo <% my $i = $num + 2; %>
Expand Down

0 comments on commit f8776a3

Please sign in to comment.