I’m using the below gulp task to convert, change the file extension and to copy the output from the source folder into a templates folder const mjml = require('gulp-mjml') With this method, you can save the output to your preferred folders as well. This can be used to create a gulp task to watch and convert you MJML files. If you are using gulp in your project, there is a gulp version as well. If you want to go the hard core way, MJML can be installed via npm as well, and used in the CLI. It provides easy command palette commands as well as a preview pane, which shows what the output will look. I use VS code, so I’ve installed it via the extensions marketplace. Plus, as extensions/plugins for VS Code, Atom, and Sublime. There is also a MJML App, which can be downloaded and installed in your machine. The good news is that there is an online tool where you can code in MJML and it will provide the output HTML. It is a transpiler, which takes MJML code as input and outputs email responsive HTML code, which is compatible with most emails clients. MJML stands for Mailjet Markup Language, and developed by MailJet. I’ve been recently introduced to MJML, which provides a solid framework to craft responsive emails. Luckily there are several responsive email frameworks available out there. Its further worsened by the numerous devices, platforms, and mail clients available these days. HTML for email, hasn’t progressed far like HTML for web, so it still requires old fashioned, and cumbersome coding. The hard part is coding responsive emails that will work on different email clients. This is where making emails responsive is important. It wouldn’t matter how good the content is if the users are not able to read that content easily, and more importantly, on a range of devices. Email campaigns are a big part of modern marketing strategy, and while its success largely depends on the content of the email, how the content is presented also plays a big role.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |