Blade is a template language created in 2011.
#956on PLDB | 13Years Old | 41kRepos |
<!-- Stored in resources/views/layouts/app.blade.php -->
<html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('sidebar')
This is the master sidebar.
@show
<div class="container">
@yield('content')
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>@yield('title', 'We love GitHub')</title>
@stack('scripts')
@stack('styles')
</head>
<body>
@include('partials.nav')
@yield('content')
<ul>
@foreach($foo as $bar)
<li>{{ $bar }}</li>
@endforeach
</ul>
{!! $raw_content !!}
</body>
</html>