title: conditional class for html using pure handlebars
body: <p>I'm using handlebars to render code in server side (no angular/ember)</p>
  
  <p>Can I still somehow have something like:<br>
  <code>&lt;p dir="auto" {{#if isRTL: class=align-right}}&gt;{{{content}}}&lt;/p&gt;</code></p>
  
  <p>I want to have a CSS class only if a bolean is true
  Something similar to ember's bind-attr...</p>
  
  <p>Without it the code is a mess:</p>
  
  <pre><code>{{#if isRTL}}
      &lt;p dir="auto" class="align-right&gt;{{{content}}}&lt;/p&gt;
  {{else}}
      &lt;p dir="auto"&gt;{{{content}}}&lt;/p&gt;
  {{#if}}
  </code></pre>