All Projects → mjmlio → Gulp Mjml

mjmlio / Gulp Mjml

Licence: mit
Add Gulp to your MJML workflow!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Mjml

Awesome Emails
✉️ An awesome list of resources to build better emails.
Stars: ✭ 1,379 (+906.57%)
Mutual labels:  email, emails, responsive-email
mjml-syntax
Sublime package for the MJML
Stars: ✭ 44 (-67.88%)
Mutual labels:  email, emails, responsive-email
Cerberus
A few simple, but solid patterns for responsive HTML email templates and newsletters. Even in Outlook and Gmail.
Stars: ✭ 4,356 (+3079.56%)
Mutual labels:  email, responsive-email
Heml
HEML is an open source markup language for building responsive email.
Stars: ✭ 4,264 (+3012.41%)
Mutual labels:  email, responsive-email
Email Templates
A collection of email templates coded in MJML
Stars: ✭ 69 (-49.64%)
Mutual labels:  email, responsive-email
activism-mailbot
No description or website provided.
Stars: ✭ 49 (-64.23%)
Mutual labels:  email, emails
Maizzle Php
Jigsaw-based PHP build system for rapid HTML email development with Tailwind CSS.
Stars: ✭ 303 (+121.17%)
Mutual labels:  email, responsive-email
Holehe
holehe allows you to check if the mail is used on different sites like twitter, instagram and will retrieve information on sites with the forgotten password function.
Stars: ✭ 568 (+314.6%)
Mutual labels:  email, emails
Email-Spammer
Great script for sending and spaming emails! gmail, yahoo, outlook, hotmail.
Stars: ✭ 79 (-42.34%)
Mutual labels:  email, emails
Pine
A modular and lightweight, responsive email framework.
Stars: ✭ 98 (-28.47%)
Mutual labels:  email, responsive-email
Mjml Utils
The utility belt for MJML developers
Stars: ✭ 85 (-37.96%)
Mutual labels:  email, responsive-email
Swiftmailer
Comprehensive mailing tools for PHP
Stars: ✭ 9,503 (+6836.5%)
Mutual labels:  email, emails
bulletproof-email
A Gulp workflow for maintainable email templates
Stars: ✭ 71 (-48.18%)
Mutual labels:  gulp, email
Blastula
Easily send great-looking HTML email messages from R
Stars: ✭ 394 (+187.59%)
Mutual labels:  email, responsive-email
email-framework
A simple, gulp powered framework to develop and test responsive emails.
Stars: ✭ 19 (-86.13%)
Mutual labels:  gulp, email
Responsive Html Email Signature
Template generator for (responsive) emails & email signatures ✨
Stars: ✭ 525 (+283.21%)
Mutual labels:  email, responsive-email
mjml-server
MJML wrapped in Express for use over HTTP
Stars: ✭ 31 (-77.37%)
Mutual labels:  emails, responsive-email
language-mjml
Atom Editor package providing syntax support for MJML
Stars: ✭ 48 (-64.96%)
Mutual labels:  emails, responsive-email
Email Extractor
The main functionality is to extract all the emails from one or several URLs - La funcionalidad principal es extraer todos los correos electrónicos de una o varias Url
Stars: ✭ 81 (-40.88%)
Mutual labels:  email, emails
Preview Email
Automatically opens your browser to preview Node.js email messages sent with Nodemailer. Made for Lad!
Stars: ✭ 112 (-18.25%)
Mutual labels:  email, emails

Gulp MJML

Add MJML to your gulp workflow!

Usage:

With an MJML file named test.mjml, render your emails to an html folder:

const gulp = require('gulp')
const mjml = require('gulp-mjml')

gulp.task('default', function () {
  return gulp.src('./test.mjml')
    .pipe(mjml())
    .pipe(gulp.dest('./html'))
})

If you have custom components linked to your own mjmlEngine, you can pass it to the gulp task so it uses your engine to render the html:

const gulp = require('gulp')
const mjml = require('gulp-mjml')

// Require your own components if needed, and your mjmlEngine (possibly with options)
// require('./components')
const mjmlEngine = require('mjml')

gulp.task('default', function () {
  return gulp.src('./test.mjml')
    .pipe(mjml(mjmlEngine, {minify: true}))
    .pipe(gulp.dest('./html'))
})

If you'd like to get validation errors and , use strict and a custom error handler function. Note that using strict will not render the file in case of error:

const gulp = require('gulp')

const mjml = require('gulp-mjml')
const mjmlEngine = require('mjml')

function handleError (err) {
  console.log(err.toString());
  this.emit('end');
}

gulp.task('default', function () {
  return gulp.src('./test.mjml')
    .pipe(mjml(mjmlEngine, {validationLevel: 'strict'}))
    .on('error', handleError)
    .pipe(gulp.dest('./html'))
})

If you want to override the default file extension that is output use fileExt

const gulp = require('gulp')
const mjml = require('gulp-mjml')

const mjmlEngine = require('mjml')

gulp.task('default', function () {
  return gulp.src('./test.mjml')
    .pipe(mjml(mjmlEngine, {minify: true, fileExt: ".txt"}))
    .pipe(gulp.dest('./html'))
})
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].