title: How to render a variable in HAML and preserve white-spaces?
body: <p>This is what I'm doing:</p>
  
  <pre><code>%pre
    =var
  </code></pre>
  
  <p>The value of <code>var</code> is <code>"foo\nbar"</code>. I'm getting this HTML:</p>
  
  <pre><code>&lt;body&gt;
    &lt;pre&gt;foo
    bar&lt;/pre&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Obviously, I'm expecting:</p>
  
  <pre><code>&lt;body&gt;
    &lt;pre&gt;foo
  bar&lt;/pre&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>What to do?</p>