Make Mojolicious 'layout'/'extends' working
This commit is contained in:
committed by
Ask Bjørn Hansen
parent
fa30565b6b
commit
5e5c23d786
@@ -71,6 +71,9 @@ sub _render {
|
||||
|
||||
my $helper = MojoX::Renderer::TT::Helper->new(ctx => $c);
|
||||
|
||||
# Purge previous result
|
||||
$$output = '';
|
||||
|
||||
my @params = ({%{$c->stash}, c => $c, h => $helper}, $output, {binmode => ':utf8'});
|
||||
$self->tt->{SERVICE}->{CONTEXT}->{LOAD_TEMPLATES}->[0]->ctx($c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user