title: razor conditional attributes to output html
body: <p>I'm using some conditional logic in razor to show/hide attributes...</p>
  
  <p>Can this be written in one line?</p>
  
  <pre><code>&lt;div
      @if (!isEditOrCopyMode &amp;&amp; !Model.IsRangeDefaultsSet)
      {
          @:id="hidden-frame-thickness" style="display: none"
      }
  &gt;
  </code></pre>