Mustache
| Mustache is a web template system. With the Mustache app in Make, you can compile a Mustache template to text. |
|---|
Requirements
To use the Mustache app in Make, 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 scenarios.
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 scenario, 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.

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

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 scenario.
The final app module, in this case an Email > Send an email module, uses the content from the Mustache module and sends the email.
