title: Ember.js Calling One Bound Helper from another
body: <p>how can I call one bounded helper from another in ember.js?</p>
  
  <p>I want to be able to use following handlebars template. Is this somehow possible?</p>
  
  <pre><code>{{#each row in content}}
  &lt;tr&gt;
      {{#each column in columns}}
          &lt;td&gt;{{object _view row column}}&lt;/td&gt;
      {{/each}}
  &lt;/tr&gt;
  {{/each}}
  </code></pre>
  
  <p>I tried something like this:</p>
  
  <pre><code>Ember.Handlebars.registerBoundHelper('property', function (object, property) {
      if(property &amp;&amp; property.name) {
          return Ember.get(object, property.name);
      }
  
      return null;
  });
  
  Ember.Handlebars.registerBoundHelper('object', function (view, object, property) {
      if (property &amp;&amp; property.name) {
          if (property.formatter) {
              return property.formatter.call(property.name, {
                  data: {
                      view: view,
                  },
                  types: ["ID"],
                  hash: {},
                  object: object,
                  property: property,
              });
          }
  
          return Ember.get(object, property.name);
      }
  
      return null;
  });
  </code></pre>
  
  <p>Property is defined in the following way:</p>
  
  <pre><code>Ember.Object.create({
      name: "message",
      title: "Message",
      formatter: Ember.Handlebars.helpers.property
  });
  </code></pre>
  
  <p>Object is instance of:</p>
  
  <pre><code>App.Log = DS.Model.extend({
      module: DS.attr('string'),
      message: DS.attr('string'),
      user: DS.belongsTo('App.User')
  });
  </code></pre>