title: Composite C1 - Using MVC RenderSections or the like
body: <p>In Composite C1 I'm using Razor syntax to create my master layout. For faster loadtimes it's recommended to put your scripts just before the end body tag instead of inside the head tag. That's why I put jQuery and other scripts just before the end body tag.</p>
  
  <p>When I use a Razor function with JavaScript that refers to jQuery I get an error because jQuery hasn't been loaded yet. The HTML from the Razor function is output before the jQuery script is loaded:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: $ is not defined </p>
  </blockquote>
  
  <p>In MVC I can use RenderSection in the master layout to accomplish this (rendering the JavaScript below my master layout scripts</p>
  
  <pre><code>@RenderSection("FooterScripts", false)
  </code></pre>
  
  <p>Then in my views I can define a section like this:</p>
  
  <pre><code>@section FooterScripts {
      &lt;script type="text/javaScript"&gt;
          $(function () {
              ...
          });
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>Which will render the HTML in the correct place in the final HTML. Is this possible to do in Composite C1? I couldn't get RenderSection to work even though Intellisence tells me it's available.</p>