title: Ember/Handlebars: compare variable with string
body: <p>I need to display some block depending on the current views variable in comparison to some string:</p>
  
  <p><strong>PSEUDO</strong> code is:</p>
  
  <pre><code>{{#if view.someVariable "desiredValue"}}
      Hurray desiredValue exists in this  view!
  {{else}}
      Sorry, doesn't match...
  {{/if}}
  </code></pre>
  
  <p>Of course it doesn't work as <code>if</code> statement allows only one param. I tried with custom <code>registerHelper</code> of Handlebars, but it doesn't resolve the <code>view.someVariable</code>, instead uses it as a string (although <code>view.someVariable</code> is defined and has value).</p>
  
  <p>Finally I also tried with Handlebar's <code>registerBoundHelper</code> - it resolves the params BUT doesn't support Handlebar's blocks, what's more tries to resolve the string as an object, so fail again. Pure madness!</p>
  
  <p>My views are very dynamical they depends on many factors also from backend and approach from the pseudo code would be perfect for resolving it. Is there any way to do that?</p>
  
  <p><strong>Edit:</strong> 
  There is a sample of what I want ... <a href="http://jsfiddle.net/biesior/dMS2d/" rel="nofollow">http://jsfiddle.net/biesior/dMS2d/</a> looks quite trivial...</p>
  
  <p><code>[if]</code> statement inside the <code>each</code> is pseudo code of course </p>