title: Including external resources through a view that extends a layout
body: <p>I'm trying to learn Laravel by using it for one of my sites however I'm having trouble working something out.</p>
  
  <p>I have a <code>layout.blade.php</code> file which holds all my global markup. Stuff like the header, footer etc. I'm also including some external stuff like stylesheets and scripts in <code>&lt;head&gt;</code> like this:</p>
  
  <pre><code>{{ HTML::script('js/bootstrap.min.js'); }}
  </code></pre>
  
  <p>However, there's some external stuff that I only want to load on certain pages. I'm including individual views from the header like this:</p>
  
  <pre><code>&lt;div id="content"&gt;
      @yield('content')
  &lt;/div&gt;
  </code></pre>
  
  <p>and in the views I'm extending the layout like so:</p>
  
  <pre><code>@extends('layout')
  
  @section('content')
      &lt;h1&gt;some content&lt;/h1&gt;
  @stop
  </code></pre>
  
  <p>How can I use a <code>HTML::script</code> type function to include stuff in my <code>&lt;head&gt;</code> from a view that extends <code>layout.blade.php</code>?</p>
  
  <p>Thanks!</p>