Handlebars

Go to Product

Apply a Handlebars template to a given JSON object which provides the variables.

Handlebars is a simple templating language. It uses a template and an input object to generate HTML or other text formats. Handlebars templates look like regular text with embedded Handlebars expressions.

You can pass JSON cells which contain the variable data and reference them within your Handlebars templates through the data property. E.g. for a JSON call with the content { "firstname" : "Bob" ,"lastname": "Ross" }, you can render the values as follows:

<p>{{ data.firstname }} {{ data.lastname }}</p>

You can reference flow variable values (primitive and array types) through the variables property.

A handlebars expression is a {{, some contents, followed by a }}. When the template is executed, these expressions are replaced with values from an input object.

Options

Handlebars Template
The Handlebars template.
Variables Column
The input JSON cell which provides the variables.
Output Column
The name of the appended column.
Content Type
Determine whether to preview in HTML or plain text.
Open Live Preview
Click to open a web browser which shows a preview of the rendered Handlebars template. The preview will automatically update when you make changes to the template.

Input Ports

Icon
Table with a JSON column which provides the variables.

Output Ports

Icon
Table with an appended String column which contains the applied template.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.