Enveloop Docs
Sign up for Enveloop!
  • Enveloop Docs
  • Overview
    • ✨Features
  • Getting Started
    • Introduction to Enveloop
    • Creating a Template
    • Formatting / Dynamic Content
    • Sending a test message
    • Adding a Sending Domain
    • Deploying your first message
  • Product Guides
    • Elements
      • 🔋Table
    • Using Shared Sections
    • Markdown for Formatting
    • Mustache for Dynamic Content
    • Creating a Verified Sender
    • Logging
    • Monitoring
    • Webhooks
    • Themes
  • Integrations
    • Do I need integrations?
    • SMS Integrations
      • Twilio
      • TextGrid
    • Email Integrations
      • SendGrid
      • Postmark
      • Mailgun
      • Amazon SES
      • SMTP
        • ✉️Amazon SES
        • ✉️Gmail SMTP
        • ✉️Google Domain SMTP Relay
    • Partner Integrations
      • Fly.io
  • Enveloop API
    • Getting Started with Enveloop API
    • Core API Endpoints
      • Connecting to the Enveloop API
      • POST /messages
      • GET /templates/:slug
    • Languages and Frameworks
      • 🟢NodeJS
      • 🏮Ruby on Rails
      • 🟡Python
      • 🏮Ruby
  • Settings
    • Sending IPs
  • Company
    • About Us
    • 👩‍⚖️Terms of Service
    • 😎Privacy Policy
Powered by GitBook
On this page
  • Using Markdown
  • Dynamic Content
  1. Getting Started

Formatting / Dynamic Content

How to format text and use variables to display dynamic content

Last updated 2 years ago

There are various useful styling options available for Enveloop templates, sections and elements. Along with this, you'll want to have control over the basic formatting and use of text in your messages.

Using Markdown

So, while a "text" element can have color, padding, and alignment, you still want to describe your text for bold, italic, bullets (ordered / unordered lists), headings, etc. This is accomplished using Markdown.

The "Content" field for a text element allows you to inject markdown.

As you add markdown to your text, the viewer on the left will live-update to show you the formatting effects.

Dynamic Content

In addition to formatting your message content, providing dynamic or custom/personalized info to your users, from your app, is vital. Enveloop makes this super-easy.

Using Mustache, you can inject variables into your content with the use of curly-brackets. As you add in new variables to your content, Enveloop will automatically begin tracking them, providing you ways to test, updated code snippets, etc. This will be discussed in more detail in later sections.

If you are not familiar with Markdown as a tool, we've included in our docs so you can learn more. It's simple, and a bit fun, too.

If you are not familiar with Mustache syntax, we've included a in our docs.

😄
additional resources for Markdown
guide as well as additional examples
Use Markdown to accurately describe text. It's better than fighting with endless WYSIWYG editors that never format it quite right.
In the builder mode, variables will be displayed as variables. However, you can move to the "Test" mode and, after providing some inputs, can see what live data will look like in the message.