perltidy
This commit is contained in:
1 parent
f20d1b240a
commit
79f7aa77f2
1 file changed
+6
-5
@@ -7,9 +7,7 @@ use base 'Mojo::Base';
|
|||||||
use Template ();
|
use Template ();
|
||||||
use Carp ();
|
use Carp ();
|
||||||
|
|
||||||
__PACKAGE__->attr('tt',
|
__PACKAGE__->attr('tt', chained => 1,);
|
||||||
chained => 1,
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
@@ -52,14 +50,17 @@ sub _render {
|
|||||||
#warn dump(\@args);
|
#warn dump(\@args);
|
||||||
|
|
||||||
my $output;
|
my $output;
|
||||||
unless ( $self->tt->process( $path,
|
unless (
|
||||||
|
$self->tt->process(
|
||||||
|
$path,
|
||||||
{ c => $c,
|
{ c => $c,
|
||||||
tx => $tx,
|
tx => $tx,
|
||||||
},
|
},
|
||||||
\$output,
|
\$output,
|
||||||
{binmode => ":utf8"}
|
{binmode => ":utf8"}
|
||||||
)
|
)
|
||||||
) {
|
)
|
||||||
|
{
|
||||||
Carp::carp $self->tt->error . "\n";
|
Carp::carp $self->tt->error . "\n";
|
||||||
return $self->tt->error;
|
return $self->tt->error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user