Handlebars hash
Handlebars hash: builds an object from key=value pairs.
Next
Runtime verified
Test scripts included
Builds an object from key=value pairs. Used only as a subexpression within other helpers.
Syntax
(hash ...pairs)
Returns object.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pairs |
any | Yes, repeatable | Key-value pairs, e.g. name=”Alice” age=30. |
Example
Tested in a Marketing Cloud Next email on 2026-11-22:
{{get (hash name="Alice" age=30) "name"}}rendersAlice, as documented.{{hash name="Alice" age=30}}renders{name=Alice, age=30}, as documented.
Show Next test script
Marketing Cloud Next
Works as documented
Every tested call rendered the documented result. Tested 2026-11-22 by rendering in a Marketing Cloud Next email.