Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An Example Layout of Blade Template for Laravel
<!doctype html>
<html lang="{{Session::get('lang')}}" class="no-js">
{{-- HEAD --}}
@include('Muratsplat\mvc\view\front::_head')
{{-- END OF HEAD --}}
<body class="@yield('cssOnBody')">
<!-- background wrapper -->
<div id="container">
{{-- HEADER TOP MENU --}}
@include('Muratsplat\mvc\view\front::_header_top_menu')
{{-- END OF HEADER TOP MENU --}}
@include('Muratsplat\mvc\view\front::_header')
@yield('content')
</div><!-- end div #container -->
{{-- FOOTER --}}
@include('Muratsplat\mvc\view\front::_footer')
{{-- END OF FOOTER --}}
{{-- SLOW CSS--}}
<!-- Heavy file will be listed in here! -->
@include('Muratsplat\mvc\view\front::_css_slow')
@yield('cssExtend')
{{-- END OF SLOW CSS--}}
{{-- HEAVY SCRPIPTS --}}
@include('Muratsplat\mvc\view\front::_scripts_slow')
{{-- END OF HEAVY SCRPIPTS --}}
</body>
<!-- {{count(\DB::getQueryLog())}} -->
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment