MJML template support for Twig template engine

Installs: 22 011

Dependents: 0

Suggesters: 0

Security: 0

Stars: 13

Watchers: 8

Forks: 5

Open Issues: 2


v1.6.0 2021-06-17 18:49 UTC

This package is auto-updated.

Last update: 2023-01-04 09:22:14 UTC


This bundle has been deprecated & abandoned because it is no longer used at AssoConnect

Build Status Quality Gate Status

This Symfony 4 bundle provides the integration of the MJML command line tool to create responsive emails as Twig templates.

It requires the installation of the MJML command line tools running with NodeJS.

It also supports custom HTML tags to avoid duplicating long MJML tags with a lot of options to ensure consistency amongst your templates.

Twig expressions can be used within the templates.

As compiling MJML code to HTML code is slow, this bundle follows this process:

  • you write MJML templates with Twig expressions
  • during cache warmup, these templates are compiled to HTML and Twig expressions are not resolved
  • you use the compiled HTML templates with Twig and all the variables you need with you favorite email sending system

How to use