---
title: "render template · RUAL Documentation"
description: "Inject content and optionally merge fields into a template, returning the HTML that results."
canonical: https://docs.rual.nl/block-types/mailchimp/mailchimptransactionalconnection_templates_render
language: en
---

# render template

This block is part of the [`mailchimp`](https://docs.rual.nl/block-types/mailchimp) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Connection Type

This block connects from a `mailchimptransactionalconnection` type block. Make sure to connect this block to the appropriate left-hand side connection.

Inject content and optionally merge fields into a template, returning the HTML that results.

- flow `flow`

- connection required `mailchimptransactionalconnection`

- template name required `value` The immutable name of a template that exists in the user's account

- template content required `array` An array of template content to render. It should be an array of objects containing name (string) and content (string)

- merge vars `array` Optional merge variables to use for injecting merge field content. It should be an array of objects containing name (string) and content (string)

- flow `flow`

- connection `mailchimptransactionalconnection`

- success `condition`

- error `value`

- html `value`

A typical wiring for [render template](https://docs.rual.nl/block-types/mailchimp/mailchimptransactionalconnection_templates_render): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [connect](https://docs.rual.nl/block-types/mailchimp/mailchimptransactionalconnection_open) feeds the `connection` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `template_name` pin; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `template_content` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the render template block: typical wiring for render template.](https://docs.rual.nl/canvas-examples/mailchimptransactionalconnection_templates_render.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Service documentation
