title: slim dynamic conditional class
body: <p>Just to help other developers, because there is no similar question on SO.  </p>
  
  <pre><code>div class=(is_active? ? 'active' : 'inactive')
  div class=('active' if is_active?)
  </code></pre>