Skip to content

Commit 5269745

Browse files
committed
Add compact @section() syntax example
1 parent 0319887 commit 5269745

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Blade is a simple, yet powerful templating engine provided with Laravel. Unlike
1313
<!-- Stored in resources/views/layouts/master.blade.php -->
1414

1515
<html>
16+
<head>
17+
<title>App Name - @yield('title')</title>
18+
</head>
1619
<body>
1720
@section('sidebar')
1821
This is the master sidebar.
@@ -27,6 +30,8 @@ Blade is a simple, yet powerful templating engine provided with Laravel. Unlike
2730
#### Using A Blade Layout
2831

2932
@extends('layouts.master')
33+
34+
@section('title', 'Page Title')
3035

3136
@section('sidebar')
3237
@@parent

0 commit comments

Comments
 (0)