New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing a parent array property from within mustche #378

Closed
justinbmeyer opened this Issue May 4, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@justinbmeyer
Contributor

justinbmeyer commented May 4, 2013

{{#family}}
  <tr {{data "attendee" .}}>
    <td>{{name}}</td>
      {{#events}}
      <td> {{{rsvp}}}  </td>
      {{/events}}
   </tr>
{{/family}}

I want rsvp to access both the family and the current event. How can we make this possible / or is it already possible?

@ghost ghost assigned andykant May 4, 2013

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Oct 25, 2013

Contributor

This is now possible with options.scope.

registerHelper('rsvp', function(options){
  options.scope.attr('property to find in scope')
})
Contributor

justinbmeyer commented Oct 25, 2013

This is now possible with options.scope.

registerHelper('rsvp', function(options){
  options.scope.attr('property to find in scope')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment