laravel-elixir-mjml
v2.0.0
Published
Laravel Elixir MJML Extension
Downloads
11
Readme
laravel-elixir-mjml
Elixir Wrapper for MJML
What is MJML?
(via https://mjml.io/)
MJML is a markup language designed to reduce the pain of coding a responsive email. Its semantic syntax makes it easy and straightforward and its rich standard components library speeds up your development time and lightens your email codebase. MJML's open-source engine generates high quality responsive HTML compliant with best practices.
var elixir = require('laravel-elixir');
require('laravel-elixir-mjml');
elixir(function(mix) {
mix.mjml('awesome-template.mjml', 'awesome-template.html');
});
This will get your mjml templates from resources/assets/mjml
in this case awesome-template.mjml
and saves the compiled version to public/html/awesome-template.html
.