Skip to content

2.0.0

Compare
Choose a tag to compare
@takkaria takkaria released this 09 Dec 04:16
· 52 commits to master since this release
  • 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
  • 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