title: boolean logic within a handlebars template
body: <p>Is it possible to perform boolean logic within a handlebars conditional?</p>
  
  <p>Right now I spoof this behavior with a controller function, so I end up with the controller</p>
  
  <pre class="lang-js prettyprint-override"><code>App.ApplicationController = Ember.Controller.extend({
      bool1: true,
      bool2: true,
      both: function(){ return this.bool1 &amp;&amp; this.bool2; }.property('content.both'),
  });
  </code></pre>
  
  <p>Which allows me to use a handlebars template of</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script type="text/x-handlebars"&gt;
    {{#if both}}
       &lt;p&gt; both were true &lt;/p&gt;
    {{/if}}
  &lt;/script&gt;
  </code></pre>
  
  <p>and that works fine, but raises some problems. First off, it obscures what's happening (particularly if good function names aren't used). Secondly, it seems to infringes a bit on the MVC separation.</p>
  
  <p>Is it possible to do something along the lines of </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script type="text/x-handlebars"&gt;
    {{#if bool1 &amp;&amp; bool2}}  &lt;!-- this will not actually work --&gt;
       &lt;p&gt; both were true &lt;/p&gt;
    {{/if}}
  &lt;/script&gt;
  </code></pre>
  
  <p>and have it work?</p>