changes due to the new options passed to handler
This commit is contained in:
1 parent
bbabbf9ac1
commit
3c8ec94a70
1 file changed
+4
-7
@@ -49,17 +49,14 @@ sub _init {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub _render {
|
sub _render {
|
||||||
my ($self, $mojo, $args) = @_;
|
my ($self, $renderer, $c, $output) = @_;
|
||||||
|
|
||||||
$args->{args} ||= {};
|
my $template_path = $c->stash->{template_path};
|
||||||
|
|
||||||
#use Data::Dump qw(dump);
|
|
||||||
#warn dump(\$args);
|
|
||||||
|
|
||||||
unless (
|
unless (
|
||||||
$self->tt->process(
|
$self->tt->process(
|
||||||
$args->{path}, {%{$args->{args}}, c => $args->{c}},
|
$template_path, {%{$c->stash}, c => $c},
|
||||||
$args->{output}, {binmode => ":utf8"}
|
$output, {binmode => ":utf8"}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user