title: Equivalent of "@section" in ASP.NET Core MVC?
body: <p>In the default <code>_Layout.cshtml</code> file, scripts are defined in "environment"s like so:</p>
  
  <pre><code>&lt;environment names="Development"&gt;
       &lt;script src="~/lib/jquery/dist/jquery.js"&gt;&lt;/script&gt;
       &lt;script src="~/lib/bootstrap/dist/js/bootstrap.js"&gt;&lt;/script&gt;
       &lt;script src="~/js/site.js" asp-append-version="true"&gt;&lt;/script&gt;
  &lt;/environment&gt;
  &lt;environment names="Staging,Production"&gt;
       &lt;script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.4.min.js"
                      asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
                      asp-fallback-test="window.jQuery"&gt;
       &lt;/script&gt;
       &lt;script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/bootstrap.min.js"
                      asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
                      asp-fallback-test="window.jQuery &amp;&amp; window.jQuery.fn &amp;&amp; window.jQuery.fn.modal"&gt;
       &lt;/script&gt;
       &lt;script src="~/js/site.min.js" asp-append-version="true"&gt;&lt;/script&gt;
  &lt;/environment&gt;
  </code></pre>
  
  <p>And below that is <code>@RenderSection("scripts", required: false)</code></p>
  
  <p>I can't seem to implement a section (in this case "scripts") in any separate .cshtml file since it looks like they got rid of "<code>@section</code>" in Core</p>
  
  <p>I would like to add specific scripts for specific views. What is the new way to go about this? Do I just dump everything in <code>_Layout</code> now?</p>