changes due to the new options passed to handler

This commit is contained in:
vti committed 2008-12-07 01:08:07 +01:00
1 parent bbabbf9ac1
commit 3c8ec94a70
1 file changed
+4 -7
+4 -7
View File
@@ -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"}
) )
) )
{ {