Releases: andrewrk/swig-email-templates
Releases · andrewrk/swig-email-templates
7.0.0
6.0.0
5.0.0
4.0.1
4.0.0
- Warning: swig is no longer maintained. Use this package at your
own risk. You may wish to switch to nunjucks and for emails, use
email-templates. - Upgrade to Juice 3. This brings changes from its dependency
web-resource-inliner. - Add support for email subject.
3.0.0
- Upgrade to Juice 2. This changes various defaults for inlining styles.
See the list of changes in Juice for more information. These
are mostly changes around preserving@font-face
and@media
, and
applying widths/heights to tables. - Fix Outlook-breaking cheerio config (issue #34)
- Update README for command-line utility
2.1.0
2.0.0
- Support for Node 4+ as well as 0.10 & 0.12
- Switch to Cheerio instead of JSDom for compatibility with a wider range of
Node versions- this means that the HTML you provide in your template will be closer to
the output of swig-email-templates. JSDom added in html, body, tbody tags
where Cheerio doesn't
- this means that the HTML you provide in your template will be closer to
- Switch back to the the original 'juice' which is now more actively maintained
- this version of juice also inlines images using data: URLs
- be mindful that juice will fetch external resources for inlining, which can
take some time
- At the same time it made sense to refactor the API a bit:
- the library presents itself as a class with a constructor method
- rewriteUrl is now an option on EmailTemplates instead of an extra argument
to render() - commandline tool no longer takes 'render' as a parameter
- Add support for setting filters on the swig instance
- Much more comprehensive documentation