title: Output csharp into a html class
body: <p>Trying to acheive outputing a variable from csharp into the class of a html element.</p>
  
  <p>Currently i'm doing this:</p>
  
  <pre><code> @foreach (var cocktail in Model)
  {
  
  
  
      &lt;li&gt;
          &lt;div class="drink"&gt;
              &lt;div class="drink-sprite " &gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="details"&gt;
              &lt;div class="name"&gt;@cocktail.CocktailName&lt;/div&gt;
              &lt;div class="price"&gt;£@cocktail.Price.ToString("0.00")&lt;/div&gt;
              &lt;div class="description"&gt;@cocktail.Description&lt;/div&gt;
          &lt;/div&gt;
      &lt;/li&gt;
  
  }
  </code></pre>
  
  <p>essentially in the div class="drink-sprite" I want to put the drink type in the glass so an image is shown based on the class types. so drink-sprite martini - which is dervied from cocktail.type.</p>
  
  <p>Anythoughts?</p>