Skip to content

Instantly share code, notes, and snippets.

@pinscript
Last active December 30, 2015 18:14
Show Gist options
  • Save pinscript/08a834e21bae79da35b3 to your computer and use it in GitHub Desktop.
Save pinscript/08a834e21bae79da35b3 to your computer and use it in GitHub Desktop.
@extends('layouts/master')
@section('content')
<div id="main" style="width: 80%; float: left; background-color: #fefefe;">
@yield('content-child')
</div>
<div id="sidebar" style="width: 20%; float: left; background-color: #33333;">
@yield('sidebar')
</div>
@endsection
<html>
<head>
<title>App Name</title>
</head>
<body>
<h1>App</h1>
<em>Header</em>
<div class="container">
@yield('content')
</div>
<hr />
<em>Footer</em>
</body>
</html>
@extends('layouts/master')
@section('content')
Welcome
@endsection
@extends('layouts/master-with-sidebar')
@section('content-child')
I have a sidebar HEHE
@endsection
@section('sidebar')
This is the sidebar
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment