title: Dynamic class name in HAML
body: <p>Is there a better way to convert the following to HAML?</p>
  
  <pre><code>&lt;% flash.each do |key, value| %&gt;
    &lt;div class="flash &lt;%= key %&gt;"&gt;&lt;%= value %&gt;&lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Best I can do is: </p>
  
  <pre><code>  - flash.each do |key, value|
      %div{:class =&gt; "flash " + key.to_s}= value
  </code></pre>
  
  <p>But it seems awkward. And <code>.flash#{ key}= value</code> doesn't seem to be right?!? </p>