Render template
BetaReads data
Builds the HTML a template produces, without sending anything.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp Transactional connection the step signs in with. |
| Template slugRequired | The template's immutable slug — the List templates node answers it. |
| Editable regions | One row per mc:edit region: the key is the region's name, the value the HTML that goes into it. |
| Merge values | *|NAME|* in the template is replaced by the value here. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp-transactional`) |
templateSlug | text |
templateContent | object of text, by default {} |
mergeVars | object of text, by default {} |
Output
| Field | Type |
|---|---|
htmlThe rendered HTML | string |
Sample output, and the expression for each field
- html"<p>Hi Jane</p>"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"mergeVars": {},
"templateContent": {},
"templateSlug": "<template slug>"
},
"label": "Render template",
"type": "mandrill.renderTemplate",
"version": 1
}