Skip to content

Instantly share code, notes, and snippets.

@Kindari
Created August 20, 2012 23:15
Show Gist options
  • Save Kindari/3409096 to your computer and use it in GitHub Desktop.
Save Kindari/3409096 to your computer and use it in GitHub Desktop.
@layout('single-column')
@section('content')
Whatever
@endsection
<html>
<head>
<title>{{ $title }}</title>
@section('assets')
{{ Asset::styles() }}
{{ Asset::scripts() }}
@yield_section
</head>
<body>
@section('content')
@yield_section
</body>
</html>
<?php
View::composer('single-column', function($view){
$view->title = 'Welcome to example.com';
Asset::add('css_reset', 'reset.css');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment