Comments (4)
Seems like a valid use case. Couple things to note:
- Some dispatching services, such as SendGrid, will automatically render a text version given the html version and do the right thing with it.
- In the absence of this service, it makes sense for swig-email-templates to automatically render a text version based on the html version.
- If your project demands complete control over the plain text version, it makes sense to be able to override this functionality and manually provide a text version.
I'm curious where you fit in on that list, @paintzen.
from swig-email-templates.
I use Amazon SES for sending emails, and although it is ambiguous in the documentation whether or not a text version is required, my own tests, indicate it is. I would be fine for swig-email-templates to auto generate a text version. Nothing I'm doing is different between the two (content wise).
I'd much prefer to use swig-email-templates mainly because of the inheritance. Nothing crazy, just don't want to keep track of updating fifteen templates when we tweak our logo.
from swig-email-templates.
Makes sense. Feel free to make a pull request. This project is only 122 lines of code. Otherwise I'll get around to it eventually.
from swig-email-templates.
+1 Would love to see the feature too! I can't start using it until it's available. Unfortunately text email -combined with HTML email version- is a whole lot more important than it might seem for spam filters. So for production ready developments I'd highly recommend dropping this in. Current implementation looks awesome and I'm excited to be able to use this module. Been using node-email-templates but would love switching to a reusable design! Thank you.
from swig-email-templates.
Related Issues (20)
- installed on OSX mavericks using zsh and can't seem to get it to work - it's definitely not in my $PATH HOT 8
- Problems on Windows HOT 1
- Memory leak causes crashing on large batches of templates HOT 11
- Is there any problem caching the render function? HOT 2
- Is it supposed to work with gettext? HOT 10
- Breaks on node/iojs > v0.11.13, TypeError: Cannot read property 'removeChild' of nul HOT 4
- Problem running on windows platform HOT 1
- Package.js out of date HOT 1
- Fix for Node version >= 4.x HOT 7
- Should this work with nodemailer's embedded images using the 'cid' parameter? HOT 5
- Issue with cheerio encoding apostrophes HOT 1
- SyntaxError: Invalid regular expression: missing / in file [.../report.html]. HOT 1
- What about internationalization support? HOT 3
- Swig no longer being maintained HOT 9
- documentation links are broken. HOT 1
- Cannot set property 'useTemplate' of undefined HOT 2
- Error: ENOENT: no such file or directory, open on up-gradation to latest version HOT 2
- Nested dependency on insecure [email protected] HOT 1
- Dependency update - Minimist HOT 1
- Vulnerability CVE-2020-7598 is introduced by package minimist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swig-email-templates.