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 = const mjml = gulp
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 = const mjml = // Require your own components if needed, and your mjmlEngine (possibly with options)// require('./components')const mjmlEngine = gulp
If you'd like to get validation errors and , use
strict
and a custom error handler function. Note that usingstrict
will not render the file in case of error:
const gulp = const mjml = const mjmlEngine = { console; this;} gulp