Created
January 23, 2013 09:41
-
-
Save Kindari/4603727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @section('content') | |
| Some Content | |
| @endsection | |
| @section('title') | |
| Some Content | @parent | |
| @endsection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title> | |
| @section('title') | |
| Some Title | |
| @yield_section | |
| </title> | |
| </head> | |
| <body> | |
| @yield('content') | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Route::get('foobar', function(){ | |
| $layout = View::make('layout'); | |
| $layout->content = View::make('content'); | |
| return $layout; | |
| //or return View::make('layout')->nest('content', 'content'); | |
| }); | |
| Route::get('some_ajax_call', function(){ | |
| return View::make('content'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment