Make Mojolicious 'layout'/'extends' working

This commit is contained in:
Maxim Vuets
2011-02-05 10:02:09 -08:00
committed by Ask Bjørn Hansen
parent fa30565b6b
commit 5e5c23d786
2 changed files with 27 additions and 3 deletions
+3
View File
@@ -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);