title: Handlebars helper not getting value of variable
body: <p>I'm Trying to create a custom "if_eq" helper for a Handlebars / Ember application.  The helper is called with the following syntax: {{#if_eq item.name 'bob'}}, but is receiving 2 string values to compare (literally 'item.name' and 'bob'), instead of the value of "item.name" in the context it was called.  Wondering what I might be doing wrong.  Thanks!</p>
  
  <p>Relevant code snippets are listed below and also created a jsbin to illustrate the problem <a href="http://emberjs.jsbin.com/sebihidede/1/edit?html,js,console,output" rel="nofollow">here</a></p>
  
  <p><strong>Helper Code</strong></p>
  
  <pre><code>Handlebars.registerHelper('if_eq', function(a, b, opts) {
      console.log( "Comparing ", a, b);
      if(a == b)
          return opts.fn(this);
      else
          return opts.inverse(this);
  });
  </code></pre>
  
  <p><strong>Template code</strong></p>
  
  <pre><code>&lt;ul&gt;
      {{#each item in model}}
          {{#if_eq item.name 'bob'}}
              &lt;li&gt;We have a bob here!&lt;/option&gt;
          {{else}}
              &lt;li&gt;A non-bob&lt;/li&gt;
          {{/if_eq}}
      {{/each}}
  &lt;/ul&gt;
  </code></pre>