MJML + Your favourite templating engine
Experimental
This project is still in early development. Proceed with caution, breaking changes will be coming
Only tested with nunjucks
Installation
npm install mailplate -s
Usage
var Mailplate = ;var nunjucks = ; var mailplate = renderer: nunjucks; mailplate;
hello.nunj
Hello {{ name }}!
Caveats
- You cannot use
<mj-include path="template.mjml">
instead use your template engines include function in nunjucks this is{% include "template.html" %}