title: What is the difference between Section and Stack in Blade?
body: <p>We can use a <code>section</code> to define some HTML and then <code>yield</code> that somewhere else. </p>
  
  <p>So why do we have stacks?  <a href="https://laravel.com/docs/5.2/blade#stacks" rel="noreferrer">https://laravel.com/docs/5.2/blade#stacks</a></p>
  
  <p>It's doing exactly the same thing with different keywords, but has fewer options (No inheritance).</p>
  
  <pre><code>@push('scripts')
      &lt;script src="/example.js"&gt;&lt;/script&gt;
  @endpush
  
  &lt;head&gt;
      &lt;!-- Head Contents --&gt;
  
      @stack('scripts')
  &lt;/head&gt;
  </code></pre>
  
  <p>Can be done with section:</p>
  
  <pre><code>@section('scripts')
      &lt;script src="/example.js"&gt;&lt;/script&gt;
  @endsection
  
  &lt;head&gt;
      &lt;!-- Head Contents --&gt;
  
      @yield('scripts')
  &lt;/head&gt;
  </code></pre>