Template variables
Waypoint’s template builder takes advantage of the LiquidJS template language to populate the dynamic parts of a template.
This data is passed into the template while sending templated emails. This data can also be mocked by using test data within the template builder.
Example
To output the value of one of your variables, you can use LiquidJS output syntax.
Data
The data in your test data or passed through the API.
{ "user": { "firstName": "Jordan" }}
Input
The content block inputs or template metadata within the template builder.
Hello {{user.firstName}}
Output
Rendered output shown on the template rendering.
Hello Jordan