Handlebars getContentBlock
Handlebars getContentBlock: inserts a content block into the template and renders it.
Next
Runtime verified
Test scripts included
Inserts a content block into the template and renders it.
Syntax
{{getContentBlock key}}
Returns string.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
key |
string | Yes | Key that identifies the content block. |
Example
Tested in a Marketing Cloud Next email on 2026-11-22:
{{fallback (getContentBlock "missingBlockKey") "none"}}rendersnone, 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.
See also
- AMPscript
ContentBlockByKey— does a similar job in AMPscript, with a different call shape - Official reference