comment passer des paramètres à Handlebars helper? Quelle est la différence entre options.hash & amp; options.data

Voici un typique Guidon helper:

Ember.Handlebars.helper 'myHelper', (value, options) ->
  ...

Selon cette protip vous pouvez passer de hachage pour Guidon aides. J'ai regardé sur la source et découvert qu'il fournit à la fois options.hash et options.data. Je suis un peu confus que cela ne fonctionnerait pas comme prévu:

{{#with controllers.currentCardCategory}}
  {{#each property in cardProperties}}
    <td class="td">{{cardProperty this property=property.symbol}}</td> 
  {{/each}}
{{/with}}

this est l'actuel Card enregistrement. Ici, je me suis property.symbol comme une chaîne de caractères

Mais cela a fonctionné:

{{#with controllers.currentCardCategory}}
  {{#each property in cardProperties}}
    <td class="td">{{cardProperty this property.symbol}}</td> 
  {{/each}}
{{/with}}

et la valeur était accessible via le options.

Mais maintenant je ne peux pas faire ça:

{{#with controllers.currentCardCategory}}
  {{#each property in cardProperties}}
    <td class="td">{{cardProperty this property.symbol anotherParam yetAnotherParam}}</td> 
  {{/each}}
{{/with}}

Ma question est: comment passer d'autres paramètres à l'aide et quelle est la différence entre options.hash et options.data dans l'aide?

source d'informationauteur wryrych