This repository was archived by the owner on Mar 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Blade
Bruno Fernando dos Santos Silva edited this page Jan 20, 2018
·
12 revisions
SetRobot comes with Blade included, Blade is a simple yet powerful templating engine provided by the Laravel Framework. With it you can create much more than simple views, but complex templates counting on components that can be inherited and used in various views without the use of PHP plan.
The best from Laravel to WordPress!
- Blade can automatically escape you're data with
{{{ $var }}}. - Just use
{{ your code }}and you're ready to go! - With blade you can extend and include views which is more DRY(Don't Repeat Yourself)
- With blade you can create macro's and view composers
By default we have 3 sections
-
@section('content'): Destined to the middle of the site -
@push('footer-script'): Intended for scripts in the footer, if you wanted to run one script per page -
@push('top-style'): Intended for style at the top, if you wanted to run one style per page.
Can I create others? But of course, if your project needs several other sections just create @yield