get
Use property paths (a.b.c) to get a value or nested value from the context. Works as a regular helper or block helper.
Params
prop{String}: The property to get, optionally using dot notation for nested properties.context{Object}: The context objectreturns{String}
Usage
{{get "a.b.c" context}}
Example
{{ assign 'product_id' (get 'id' product) }}
{{ product_id }}
{{ assign 'src' (get 'featured_image.src' product) }}
{{ src }}
Was this article helpful to you?