@@ -109,10 +109,8 @@ sub render {
109109 my $content = $stash -> {' mojo.content' } //= {};
110110 local $content -> {content } = $output =~ / \S / ? $output : undef if $stash -> {extends } || $stash -> {layout };
111111 if ($stash -> {inline_layout }) {
112- @$options {qw( template inline) } = (undef , delete $stash -> {inline_layout });
113- $options -> {format } = $stash -> {format } || $self -> default_format;
112+ @$options {inline } = delete $stash -> {inline_layout };
114113 if ($self -> _render_template($c , \my $tmp , $options )) { $output = $tmp }
115- $content -> {content } //= $output if $output =~ / \S / ;
116114 }
117115 while ((my $next = _next($stash )) && !defined $inline ) {
118116 @$options {qw( handler template) } = ($stash -> {handler }, $next );
@@ -220,15 +218,6 @@ sub _next {
220218 return join ' /' , ' layouts' , $layout ;
221219}
222220
223- sub _render_content {
224- my ($self , $c , $next , $options , $output ) = @_ ;
225- my $stash = $c -> stash;
226- @$options {qw( handler template) } = ($stash -> {handler }, $next );
227- $options -> {format } = $stash -> {format } || $self -> default_format;
228- if ($self -> _render_template($c , \my $tmp , $options )) { $$output = $tmp }
229- $stash -> {' mojo.content' }-> {content } //= $$output if $$output =~ / \S / ;
230- }
231-
232221sub _render_template {
233222 my ($self , $c , $output , $options ) = @_ ;
234223
0 commit comments