Navigation Menu

Skip to content

Commit

Permalink
better template names for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 12, 2012
1 parent 01df8cf commit 76f320d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command.pm
Expand Up @@ -60,7 +60,7 @@ sub rel_file { catfile(getcwd(), split /\//, pop) }

sub render_data {
my ($self, $name) = (shift, shift);
Mojo::Template->new->name(qq{template "$name" from DATA section})
Mojo::Template->new->name("template $name from DATA section")
->render(Mojo::Loader->new->data(ref $self, $name), @_);
}

Expand Down

0 comments on commit 76f320d

Please sign in to comment.