title: How to use ? : if statements with Razor and inline code blocks
body: <p>I'm updating my old .aspx views with the new Razore view engine. I have a bunch of places where I have code like this:</p>
  
  <pre><code>&lt;span class="vote-up&lt;%= puzzle.UserVote == VoteType.Up ? "-selected" : "" %&gt;"&gt;Vote Up&lt;/span&gt;
  </code></pre>
  
  <p>Ideally I'd like to do this:</p>
  
  <pre><code>&lt;span class="vote-up@{puzzle.UserVote == VoteType.Up ? "-selected" : ""}"&gt;Vote Up&lt;/span&gt;
  </code></pre>
  
  <p>However there's two problems here:</p>
  
  <ol>
  <li><code>vote-up@{puzzle.UserVote</code> .... is not treating the @ symbol as a start of a code block</li>
  <li><code>@puzzle.UserVote == VoteType.Up</code> looks at the first part <code>@puzzle.UserVote</code> as if it's supposed to render the value of the variable.</li>
  </ol>
  
  <p>Anyone know how to address these issues?</p>