assoconnect/mjml-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

MJML template support for Twig template engine

Installs: 22 806

Dependents: 0

Suggesters: 0

Security: 0

Stars: 13

Watchers: 10

Forks: 7

Open Issues: 2

Type:symfony-bundle

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

This package is auto-updated.

Last update: 2023-11-04 11:18:57 UTC


README

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