Through the use of self introduced .inky.cshtml files you can use the automated Foundation for Emails workflow in a .Net environment. https://talkabout.pettico.de/email-is-easy/
- put emails.js in your gulp tasks.
- install packages: npm i --save-dev fs lazypipe inky gulp-load-plugins siphon-media-query yargs foundation-emails gulp-if gulp-replace gulp-rename run-sequence gulp-sourcemaps gulp-sass gulp-inline-css gulp-htmlmin
- add paths to gulp config file, chck if they are correct
- add require to gulp file, if needed: require('./gulp-tasks/emails');
- add styles to styles folder: mail.scss
- add folder structure to your styles and be sure to include the files defines in mail.scss: 9_email emails.settings foundation-emails emails.global ...
- for reference how to write inky code: http://foundation.zurb.com/emails/docs/sass-guide.html#boilerplate
There might be snippets of code where you want inky to back off. Inky loves to close tags, but c# need to be left as is. Wrap this piece of code in ingnore tags and it will be skipped in the inky processing.
- add framework options (e.g. MJML ).
- there is no view files implemented at this point, assuming you already have this in your main gulp tasks. A seperate watch for emails would be useful to kick in the email task to make it more modular.