Commit 5299e32a authored by Dayle Rees's avatar Dayle Rees

Merge pull request #1011 from Jakobud/feature/templating-docs

Added documentation for the @render() Blade method
parents 5c3ede74 7475bcd3
......@@ -69,13 +69,16 @@ Blade makes writing your views pure bliss. To create a blade view, simply name y
{{ Asset::styles() }}
#### Rendering a view:
#### Render a view:
<h1>Profile</hi>
You can use **@include** to render a view into another view. The rendered view will automatically inherit all of the data from the current view.
<h1>Profile</hi>
@include('user.profile')
> **Note:** When using the **@include** Blade expression, the view will automatically inherit all of the current view data.
Similarly, you can use **@render**, which behaves the same as **@include** except the rendered view will **not** inherit the data from the current view.
@render('admin.list')
#### Creating loops using Blade:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment