Question: I'm trying to use pjax on my site, which means that for a full page request I render the whole template (this is normal behaviour), but on pjax requests I would like to render just one section. My templates all extend a master template.

How can I most elegantly do that?

Answer: 
My best answer right now would be to state in your view that it must only extend the master template (layout) if the request is not being called via AJAX:

```
@if(!Request::ajax())
    @extends('master.template')
@endif

```

Note, however, that this solution may not be best for your specific templates (I can only guess that). You'd need to make sure that each template/view only contains things that do not repeat, like side bars, etc. For example, if you have a content area that needs to be updated with pjax, then your view should only contain whatever should be changed.
Inside your controller's action, explicitly return the partial view you wanted to render:

```
public function action_someajax()
{
    ...
    return View::make('mypartial', $data);
}

```

This would render the partial instead of the controller's layout.