Laravel Blade Template Accumulation

Source: Internet
Author: User

    • Command set
{{$var}}-Output PHP variable {{$varOr' Default '}}-Output PHP variable with default value {{{}$var}}-Output escape contents {{--Comment--}}-Template comment@extends(' layout ')-Inherit template@if(condition) -ifStatement start@else-Else@elseif(condition) -Else if@endif-ifEnd@foreach($listAs$key=$val)-foreach Start@endforeach-foreach End@for($i=0;$i<Ten;$i++) - forBeginning@endfor- forEnd@while(condition) - whileBeginning@endwhile- whileEnd@unless(condition)-Unless opening@endunless-Unless end include (file)-Introducing Templates@include(file, [' var '=$val,...]) -Introduce templates with new variables.@each(' file ',$list,' Item ')-Render Template collection@each(' file ',$list,' Item ',' Empty ')-Renders a template in the collection if the template does not exist or empty renders another@yield(' section ')-Define a chunk.@show-End Definition Block@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 (in4.0has been removed from the version)@append-Append to section content by name@overwrite-By the name of the section, overwrite all previous definitions, whichever is

Laravel Blade Template Accumulation

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.