Reputation: 58142
Given that I create a blade using the following:
View::make('home', $data);
And within home.blade.php
I have the following:
@extends('master')
@section('main')
// groovy content
@stop
Where 'master.blade.php' is simply the main wrappers and a @yield
to 'main'.
If I add @include
inside home.blade.php
it no longer extends from master
.
So how do I include a subblade inside a blade that is extending another.
@extends('master')
@section('main')
// groovy content
@include('subcontent')
@stop
Upvotes: 2
Views: 3007
Reputation: 58142
The subchild contained blade
errors. It wasn't malformed HTML, but rather a php error occurring within an escaped section of the blade. The errors weren't being displayed though (possible because it was nested), so the output of the errors was being suppressed.
Upvotes: 1