FlowmageDocs

Render template

BetaReads data

Builds the HTML a template produces, without sending anything.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp Transactional connection the step signs in with.
Template slugRequiredThe template's immutable slug — the List templates node answers it.
Editable regionsOne 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
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp-transactional`)
templateSlugtext
templateContentobject of text, by default {}
mergeVarsobject of text, by default {}

Output

FieldType
htmlThe rendered HTMLstring
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
}