mjmlio / gulp-mjml

Add Gulp to your MJML workflow!
MIT License
162 stars 37 forks source link

Add the possibility to use an existing mjmlEngine #1

Closed epayet closed 8 years ago

epayet commented 8 years ago

When you use custom mjml components, they are stored in mjmlEngine.elements. Therefore the gulp task needs to be able to take another mjmlEngine instance to be able to render these custom components (when you do require('mjml') from the gulp task, it is another instance).

If you are happy with the changes and do the merge, don't forget to update the version and eventually add me as a contributor :)

Many thanks.

WeshGuillaume commented 8 years ago

Sorry for the delay ! Thanks a lot! :+1: