Skip to content

Instantly share code, notes, and snippets.

@muratsplat
Created June 13, 2015 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muratsplat/da9cf45a296a8fb6a335 to your computer and use it in GitHub Desktop.
Save muratsplat/da9cf45a296a8fb6a335 to your computer and use it in GitHub Desktop.
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