I would use this: http://handlebarsjs.com/expressions.html#subexpressions
{{outer-helper (inner-helper 'abc') 'def'}}
But meteor give me an error...there is some solution or workaround for use nested helpers?
thanks!
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.
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}}
Spacebars inclusion and block arguments
https://github.com/meteor/meteor/blob/devel/packages/spacebars/README.md#inclusion-and-block-arguments
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With