An email template builder with a LiquidJS export

An email template builder with a LiquidJS export

Access to 'raw' templates are now available from our API for teams that prefer to store templates in their own codebase. This means teams can build email templates visually and then use the API to download the LiquidJS template that can be run from within their own application.

Why teams might use this

Some software teams prefer to build email templates within their codebase. This could be due working with highly sensitive data (eg. HIPAA compliance), legacy templates, or simply because it's the process the devs prefer.

In any case, building these email templates in code is still a pain so devs often turn to using a template builder. The problem with other builders is that it takes an additional step to convert it from static HTML content to a template with a ready-to-process templating system for variables, loops, conditionals and more.

Waypoint simplifies this process by allowing teams to programmatically grab 'raw' templates from Waypoint that include the LiquidJS templating.

Example

As an example, here is a template built on Waypoint's template builder with LiquidJS set in the template for variables ({{report.metric.value}}):

Template visually built on Waypoint


Using the API to download the template, we can access the raw subject line and raw body.

Raw subject line


Raw body
(snippet shown)

<div style="font-size: 48px; font-weight: bold; padding: 16px 24px 0px 24px; text-align: center; max-width: 100%; box-sizing: border-box;">
    <p style="margin-top: 0px; margin-bottom: 0px;">
      {{report.metric.value}}
    </p>
</div>

Conclusion

If your team manages email templates from your codebase and could benefit from an visual email template builder, be sure to check out Waypoint.

Further reading: