Skip to content
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
Closed

Accessing a parent array property from within mustche #378

justinbmeyer opened this issue May 4, 2013 · 1 comment
Milestone

Comments

@justinbmeyer
Copy link
Contributor

{{#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
Copy link
Contributor Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants