<p>I have the following html.erb code that I'm looking to move to Haml:</p>

<pre><code>&lt;span class="&lt;%= item.dashboardstatus.cssclass %&gt;" &gt;&lt;%= item.dashboardstatus.status %&gt;&lt;/span&gt;
</code></pre>

<p>What it does is associate the CSS class of the currently assigned status to the span.</p>

<p>How is this done in Haml? I'm sure I'm missing something really simple.</p>

Not sure. Maybe:
```
```
%span{:class => item.dashboardstatus.cssclass }= item.dashboardstatus.status
```
```