Skip to content

Commit

Permalink
better template examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 22, 2015
1 parent 0e272be commit 7c6d324
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojo/Template.pm
Expand Up @@ -583,7 +583,7 @@ Characters indicating the end of a tag, defaults to C<%E<gt>>.
=head2 template
my $template = $mt->template;
$mt = $mt->template($template);
$mt = $mt->template('<%= 1 + 1 %>');
Raw unparsed template.
Expand Down Expand Up @@ -635,14 +635,14 @@ Interpret L</"compiled"> template code.
=head2 parse
$mt = $mt->parse($template);
$mt = $mt->parse('<%= 1 + 1 %>');
Parse template into L</"tree">.
=head2 render
my $output = $mt->render($template);
my $output = $mt->render($template, @args);
my $output = $mt->render('<%= 1 + 1 %>');
my $output = $mt->render('<%= shift() + shift() %>', @args);
Render template.
Expand Down

0 comments on commit 7c6d324

Please sign in to comment.