Liquid Template

Transform data using a provided Liquid Template.

Component key: liquid-template

Description#

This component allows you to use the LiquidJS Templating Engine to template out documents for use by subsequent integration steps. The transform action takes two inputs: data and liquidTemplate. Data is used to populate the template.

For example, suppose you have data that looks like this:

{
"completed_tasks": ["Groceries", "Laundry", "Exercise"],
"incomplete_tasks_count": 5
}

And suppose you have a template that looks like this:

{%- for completed_task in completed_tasks -%}
- {{ completed_task }}
{%- endfor -%}
There are {{ incomplete_tasks_count }} yet to complete.

Passing in that data into that template, your result would read:

3 tasks were completed today, which include:
- Groceries
- Laundry
- Exercise
There are 5 yet to complete.

Actions#

Render Template#

Receives provided json data and transforms it into a new format using a Liquid Template | key: transform

InputKeyNotesExample

Data

data
/ Required
dataThis JSON payload will be fed into the liquid template.
{
"completed_tasks": ["Groceries", "Laundry", "Exercise"],
"incomplete_tasks_count": 5
}

Liquid Template

code
/ Required
liquidTemplateThe Liquid Template that will be used to transform the provided data.
{{ completed_tasks | size }} tasks were completed today, which include:
{%- for completed_task in completed_tasks -%}
- {{ completed_task }}
{%- endfor -%}
There are {{ incomplete_tasks_count }} yet to complete.