Skip to content

Commit

Permalink
Escape '@parent' correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVonB committed Feb 7, 2015
1 parent 875cce8 commit 47e2cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Blade is a simple, yet powerful templating engine provided with Laravel. Unlike
<p>This is my body content.</p>
@stop

Note that views which `extend` a Blade layout simply override sections from the layout. Content of the layout can be included in a child view using the `@parent` directive in a section, allowing you to append to the contents of a layout section such as a sidebar or footer.
Note that views which `extend` a Blade layout simply override sections from the layout. Content of the layout can be included in a child view using the `@@parent` directive in a section, allowing you to append to the contents of a layout section such as a sidebar or footer.

Sometimes, such as when you are not sure if a section has been defined, you may wish to pass a default value to the `@yield` directive. You may pass the default value as the second argument:

Expand Down

0 comments on commit 47e2cc3

Please sign in to comment.