Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Add Gulp to your MJML workflow!

License

NotificationsYou must be signed in to change notification settings

crowded/gulp-mjml-cshtml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Gulp to your MJML workflow!

Usage:

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

vargulp=require('gulp')varmjml=require('gulp-mjml-cshtml')gulp.task('default',function(){returngulp.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:

vargulp=require('gulp')varmjml=require('gulp-mjml-cshtml')// Require your own components if needed, and your mjmlEngine (possibly with options)// require('./components')varmjmlEngine=require('mjml')gulp.task('default',function(){returngulp.src('./test.mjml').pipe(mjml(mjmlEngine,{minify:true})).pipe(gulp.dest('./html'))})

About

Add Gulp to your MJML workflow!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp