title: Output slim to variable
body: <p>I'm using <code>Base64.encode64(val)</code> to convert html to base64.
  Example:</p>
  
  <pre><code>- val = link_to 'Link', link_path
  = Base64.encode64(val)
  </code></pre>
  
  <p>But how can I get slim markup to variable? Like so:</p>
  
  <pre><code>.class = link_to 'Link', link_path # &lt;- this output with slim div
  </code></pre>
  
  <p>Or even multiple lines</p>
  
  <pre><code>div
  span
  .another_div
  </code></pre>
  
  <p>There is a way by putting slim code into partial and do this:</p>
  
  <pre><code>- var = render 'partial'
  = Base64.encode64(var) # Convert into base64
  </code></pre>
  
  <p>How to do this without partial?</p>