Sha256: b5625092bb9e8ca7aa2ecda49734cf0f28965fb2a7f4dd0f96a32dc3f861fb61
Contents?: true
Size: 1002 Bytes
Versions: 3
Compression:
Stored size: 1002 Bytes
Contents
/** @module ember */ /** Use the `{{hash}}` helper to create a hash to pass as an option to your components. This is specially useful for contextual components where you can just yield a hash: ```handlebars {{yield (hash name='Sarah' title=office )}} ``` Would result in an object such as: ```js { name: 'Sarah', title: this.get('office') } ``` Where the `title` is bound to updates of the `office` property. Note that the hash is an empty object with no prototype chain, therefore common methods like `toString` are not available in the resulting hash. If you need to use such a method, you can use the `call` or `apply` approach: ```js function toString(obj) { return Object.prototype.toString.apply(obj); } ``` @method hash @for Ember.Templates.helpers @param {Object} options @return {Object} Hash @since 2.3.0 @public */ export default function (_vm, args) { return args.named.capture(); }
Version data entries
3 entries across 3 versions & 1 rubygems