---
title: Mustache
slug: handlebars
image: https://make-cxp-documentation.ams3.cdn.digitaloceanspaces.com/apps-center-icons/PREVIEW_DEFAULT.png
createdAt: 2025-02-03T13:28:13.883Z
---

|   | 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.

:::hint{type="info"}
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.&#x20;

## Transformers

### Compile a Template

Compiles a Mustache template to text.&#x20;

| **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.&#x20;

![Mustache sample scenario](https://api.archbee.com/api/optimize/yAufeXqD1oGWOPBNi5MAm-WpZlSKlxqydMgusu_head-20250307-131402.png)

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

::Image[]{src="https://api.archbee.com/api/optimize/yAufeXqD1oGWOPBNi5MAm-X6PSTdLDSA3B3_wp4S98P-20250307-131953.png" size="50" width="441" height="697" position="flex-start" alt="Mustache module details" showCaption="false"}

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.

::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/lCbPgZscdFE090iaypH94_uuid-5c5bad1c-03b1-a0ea-da71-7ffea109fffe.png" size="80" width="743" height="357" position="flex-start" alt="Send an email module" showCaption="false"}

# Mustache resources

- [Offiical Mustache website](https://mustache.github.io/)

