Closed
Description
Currently, I believe the {{get}}
helper is limited to one dynamic key.
{{get someObject keyA}}
I have a case where there are multiple dynamic keys in a path. Eg: foo.bar.baz
The current workaround is to use multiple, nested "get's".
{{get (get someObject keyA) keyB}}
What I propose is that the get helper use the remaining params as individual keys.
{{get someObject keyA keyB}} // == someObject.keyA.keyB
It almost acts like a concat helper, but that is not allowed in the current implementation.
{{get someObject (concat keyA '.' keyB)}}
Metadata
Metadata
Assignees
Labels
No labels