A guide

What are modular email templates?

Modular email templates replace the rebuild-from-scratch loop with a small library of approved blocks (hero, centred text, product grid, CTA, promo, social) that snap together to make any campaign. Not one-off designs.

The idea

One-off emails versus a module library

A typical module library

Six modules cover most campaigns; twelve cover almost everything

A module is a self-contained, tested HTML block with editable content fields. Here are the ones most teams build first.

Hero

An image, headline, supporting copy, and a primary CTA. The opening shot of every campaign. Defined once; reusable across promos, newsletters, and announcements.

Centred text block

Headline + paragraph, centred. Used for openers, sign-offs, and editorial moments. Variants for size, alignment, and emphasis.

Product grid

Two, three, or four product cards with image, name, price, and link. Variants for grid count, card style, and price layout.

Promo code / banner

Promo code, expiry, and rule line. Variants for solid colour, gradient, or image background.

CTA button

A single primary action. Variants for colour (from approved brand list), size, and full-width vs inline.

Social row

A small icon row linking to your channels. Defined once at the brand level; reused everywhere.

How they work

From one-off HTML to a working module library

Three stages: mark up the template, define the modules, hand the editor to marketers.

  1. 01

    Mark up the template

    A developer takes your existing HTML email and adds simple `mm-editable` tags to mark which areas are content. The structure stays exactly as it was. Only the editable surface changes.

  2. 02

    Define the modules

    Group repeating blocks into modules: hero, centred text, product grid, CTA, promo, social row. Each module gets a name, a set of fields, and any allowed variants.

  3. 03

    Marketers assemble campaigns

    Pick the modules you need, drag them into order, fill in the fields, pick variants, preview, export. See how the editor works.

A module library replaces 'every campaign is a project' with 'every campaign is a fill-in-the-blank.'
In context

Modular templates versus the alternatives

Different ways teams handle email production, and the trade-offs of each.

Approach
Pros
Cons
Approach One-off HTML emails
Pros
  • Total design freedom on each send
  • No pre-work needed
Cons
  • Every campaign is a custom build
  • Easy to drift off-brand
  • Cleanup required after each send
Approach ESP drag-and-drop builder
Pros
  • Easy entry point
  • Built into the platform
Cons
  • Templated, generic look
  • Locked to one ESP
  • Limited custom design
Approach Comment tags in raw HTML
Pros
  • Flexible for developers
  • Works with any pipeline
Cons
  • Marketers can still break things
  • No visual preview
  • Versioning lives in source control
Approach Modular email templates Recommended
Pros
  • Structure protected, content flexible
  • Reuse modules across every campaign
  • Brand consistent by construction
  • ESP-agnostic export
Cons
  • Requires initial template setup
Who uses them

Teams who benefit most from going modular

Marketing teams

Teams who send weekly or monthly campaigns and rebuild similar layouts every time. Modules eliminate the rebuild.

A retailer sends three promo emails a week. Hero, two products, promo code, footer. With modules, the only work each week is the new content.

Agencies

Agencies running multiple clients. Each client gets their own module library; campaigns assemble cleanly without revisiting design every time.

An agency runs eight clients. Eight module libraries. Producers build campaigns from approved blocks; designers only get pulled in for new modules.

Global enterprises

Multi-region brands needing consistency across markets. Shared modules; per-market localisation through content fields.

A SaaS brand across EMEA, APAC, and Americas runs the same module library; every region's localised version stays on-brand by construction.

For the developers setting it up

Plain HTML, with editable regions marked

Your existing HTML stays exactly as it is. Add an mm-editable attribute to mark the regions a marketer can edit. The platform reads the markup and presents a content-field editor for those regions.

See the full tag reference

<table mm-module="hero">
  <tr>
    <td mm-editable mm-label="Headline" mm-type="text">
      Welcome to our summer sale
    </td>
  </tr>
  <tr>
    <td mm-editable mm-label="Body" mm-type="rich-text">
      Up to 40% off across the new collection.
    </td>
  </tr>
  <tr>
    <td>
      <a mm-editable mm-label="CTA" mm-type="link"
         mm-variants="primary,secondary"
         href="https://example.com/sale"
         class="btn btn-primary">Shop now</a>
    </td>
  </tr>
</table>
Best practices

Designing a module library that lasts

FAQ

Modular email templates, in detail

  1. What is a modular email template?
  2. How are modular emails different from one-off emails?
  3. What modules should we build first?
  4. How do modular templates work technically?
  5. How are they different from ESP drag-and-drop editors?
  6. Do modular templates work with Mailchimp, Klaviyo, Salesforce, and others?
  7. How long does it take to set up a modular template?
  8. Are there limitations?
Get started

A module library for your email programme.

See how Modular Mail works for your templates and your team.