title: Haml render multiple partials in layout
body: <p>How can I make the code indent correctly?</p>
  
  <p>app/views/layouts/shared.html.haml:</p>
  
  <pre><code>= render :partial =&gt; "shared/head"
  = yield
  = render :partial =&gt; "shared/footer"
  </code></pre>
  
  <p>app/views/shared/_head.html.haml:</p>
  
  <pre><code>!!!XML
  !!!1.1
  %html{"xml:lang" =&gt; "pl", :xmlns =&gt; "http://www.w3.org/1999/xhtml"}
    %head
      %title
        some title
    %body
      .container
  </code></pre>
  
  <p>app/views/shared/index.html.haml:</p>
  
  <pre><code>%p
    Hello World!
  </code></pre>
  
  <p>app/views/shared/_footer.html.haml:</p>
  
  <pre><code>.footer
    Some copyright text
  </code></pre>
  
  <p>Rendered HTML output:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html xml:lang='pl' xmlns='http://www.w3.org/1999/xhtml'&gt; 
    &lt;head&gt; 
      &lt;title&gt; 
        some title
      &lt;/title&gt; 
    &lt;/head&gt; 
    &lt;body&gt; 
      &lt;div class='container'&gt;&lt;/div&gt; 
    &lt;/body&gt; 
  &lt;/html&gt; 
  &lt;p&gt; 
    Hello World!
  &lt;/p&gt; 
  &lt;div id='footer'&gt; 
   Some copyright text
  &lt;/div&gt; 
  </code></pre>