Laravel Blade Template Accumulation

Source: Internet
Author: User
  • Command set
  • {{$var}}-Output PHP variable {{$var or ' default '}-output PHP variable with default value {{{$var}}-Output escape contents {{--Comment-}}-Template comment @extends (' layout ')- Inherit template @if (condition)-if statement begins with @else-else@elseif (condition)-Else if@endif-if end @foreach ($list as $key = $val)-Fore Ach start @endforeach-foreach end @for ($i = 0; $i < $i + +)-For beginning @endfor-for end @while (condition)-while opening @endwhile-w Hile end @unless (condition)-unless opening @endunless-unless end include (file)-Introduce template @include (file, [' var ' = $val,...])-by The new variable introduces the template. @each (' file ', $list, ' item ')-Render template collection @each (' file ', $list, ' item ', ' empty ')-render a template in the collection if the template does not exist or the empty render another @yield (' Section ')-defines a chunk. @show-end definition chunk @lang (' message ')-output multi-language @choice (' message ', $count)-Output internationalized language @section (' name ')-section block Start @stop-section End (section processing ends here) @endsection-section End (removed in version 4.0) @append- Appended to the section content by the name of the @overwrite-all previous definitions are overwritten by the name of the sections, whichever is more.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.