assoconnect / mjml-bundle
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
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.0|^7.0
- symfony/console: ^4.2|^5.0
- symfony/framework-bundle: ^4.2|^5.0
- symfony/process: ^4.2|^5.0
Requires (Dev)
- phpunit/phpunit: ^8.1
- symfony/yaml: ^4.2|^5.0
README
This bundle has been deprecated & abandoned because it is no longer used at AssoConnect
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