title: Case statement in Slim
body: <p>Is there a way to write a case statement in Slim for the following example. I made some changes for the StackOverflow question: <a href="https://stackoverflow.com/questions/948135/how-to-write-a-switch-statement-in-ruby">How to write a switch statement in Ruby</a></p>
  
  <pre><code>case a
  when 1..5
    = "It's between 1 and 5"
  when 6
    = "It's 6"
  when String
    = "You passed a string"
  else
    = "You gave me #{a} -- I have no idea what to do with that."
  end
  </code></pre>
  
  <p>I tried the following but generates an error.</p>
  
  <pre><code>= case @taxon.name
    = when "Wedding Cakes"
      div.taxon-descripiton Wedding Cake Description
  </code></pre>
  
  <p>This is what I am told</p>
  
  <pre><code>... syntax error, unexpected tIVAR, expecting keyword_when
  ; @output_buffer.safe_concat(("&lt;when&gt;\"Weddin...
  </code></pre>