Built-in apps

Mustache

6min



Mustache is a web template system. With the Mustache app in , you can compile a Mustache template to text.

Requirements

To use the Mustache app in , you must have a source of variables that can be used for creating the result text using the Mustache template. You can use, for example, Google Sheets for this purpose, if you have a Google account.

You do not need to establish a connection to use the Mustache app.

Mustache modules

You can use the following modules to build your .

Transformers

Compile a Template

Compiles a Mustache template to text.

Field

Description

Template mode

Select Non-mappable or Mappable. If you need to build a template from variables, select Mappable.

Template

Enter the desired Mustache template in this field. Use variables as required and close them in double curly braces {{}}. These braces are called mustaches.

Variables

Define the variables used in your template.

To demonstrate what the module does, we will generate a short party invitation sent by email.

In this , a Google Sheets document is used to store the variables and values. The Mustache app gets the information from the Google Sheets document and sends the information using an Email app.

Mustache sample scenario


In the Mustache module, there are two fields for each variable item, Key and Value.

Mustache module details


When someone enters values into the Google Sheets document, these values will be used as variables for our Mustache template.

Since the Mustache module is a transformer module, it can't be last in the .

The final app module, in this case an Email > Send an email module, uses the content from the Mustache module and sends the email.

Send an email module


Mustache resources