Debian Codegraph @

tests/inputs/master.blade.php

raw
1
2 {{-- https://laravel.com/docs/master/blade
3 --}}
4 <!-- Stored in resources/views/layouts/master.blade.php -->
5
6 <html>
7 <head>
8 <title>App Name - @yield('title')</title>
9 </head>
10 <body>
11 @section('sidebar')
12 This is the master sidebar.
13 @show
14
15 <div class="container">
16 @yield('content')
17 </div>
18 </body>
19 </html>
20
21 <!-- Stored in resources/views/child.blade.php -->
22
23 @extends('layouts.master')
24
25 @section('title', 'Page Title')
26
27 @section('sidebar')
28 @parent
29
30 <p>This is appended to the master sidebar.</p>
31 @endsection
32
33 @section('content')
34 <p>This is my body content.</p>
35 @endsection
36
37 {{-- This comment will not be present in the rendered HTML --}}