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

Nested Helper explanation needs example or two #3841

Closed
Maxhodges opened this issue Mar 1, 2015 · 4 comments
Closed

Nested Helper explanation needs example or two #3841

Maxhodges opened this issue Mar 1, 2015 · 4 comments

Comments

@Maxhodges
Copy link
Contributor

No matter how many times I read this, I can't be sure what it's saying. Please provide an example or two.

Nested Helper: If there is a positional argument followed by other (positional or keyword arguments), the first argument is called on the others using the normal helper argument calling convention.

@Maxhodges Maxhodges changed the title Nested Helper explanation needs examples or two Nested Helper explanation needs example or two Mar 1, 2015
@Maxhodges
Copy link
Contributor Author

is this right?

Passing helperB to helperA
{{helperA helperB}}

Passing 'helperB with argument x' to helperA
{{helperA helperB x}}

Passing 'helperB with argument x=false' to helperA
{{helperA helperB x=false}}

@stubailo
Copy link
Contributor

@Maxhodges, looks like you have it correct. I agree that this is confusing. Can you point me to the part of the documentation that has that sentence?

@abernix
Copy link
Contributor

abernix commented Aug 3, 2016

I'm moving this to the docs repo. This is in the Spacebars docs here: https://docs.meteor.com/packages/spacebars.html

@Maxhodges I realize this issue is super old but I'm sure the community would appreciate a pull-request to make this more clear if you get a chance. I think the examples you provided are helpful too.

@abernix
Copy link
Contributor

abernix commented Aug 3, 2016

Issue moved to meteor/docs #73 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants