Comparing version 1.2.5 to 1.2.6
@@ -0,27 +1,35 @@ | ||
# 1.2.6 Special Moments | ||
- Allow to modify `moment`'s format string | ||
# 1.2.5 | ||
- Pretty Markdown output for `terminal` logger | ||
# 1.2.1 Mail Fraud | ||
- `client.send` and `client.sendString` now return only the result from the provider. | ||
- `client.send` and `client.sendString` now return only the result from the provider | ||
# 1.2.0 Spark Plugs | ||
- Support for plugging in templating engines other than `mustache`. | ||
- Support for plugging in templating engines other than `mustache` | ||
**BREAKING** | ||
- Renamed `console` client as `terminal`. | ||
- Renamed `console` client as `terminal` | ||
# 1.1.1 Real Eel | ||
- Setting `trap` to `true` will now simply not send any emails, period. | ||
- Setting `trap` to `true` will now simply not send any emails, period | ||
# 1.1.0 Providing for the family | ||
- Renamed confusing `client` definition as `provider`, which is more accurate. | ||
- Renamed confusing `client` definition as `provider`, which is more accurate | ||
# 1.0.1 Mailbox | ||
- Out the box `nodemailer` client added. | ||
- Out the box `nodemailer` client added | ||
# 1.0.0 Dragon Fire | ||
- Initial Public Release. | ||
- Initial Public Release |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"licenses": "MIT", | ||
@@ -17,0 +17,0 @@ "keywords": [ |
![campaign.png][9] ![ga](https://ga-beacon.appspot.com/UA-35043128-6/campaign/readme?pixel) | ||
[![help me on gittip](http://gbindex.ssokolow.com/img/gittip-43x20.png)](https://www.gittip.com/bevacqua/) [![flattr.png](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=nzgb&url=https%3A%2F%2Fgithub.com%2Fbevacqua%2Fcampaign) | ||
> Compose responsive email templates easily, fill them with models, and send them out. | ||
@@ -105,2 +105,6 @@ | ||
The default template engine uses `mustache`. Available engines listed below. | ||
- [`campaign-jade`][14] | ||
### `headerImage` | ||
@@ -127,2 +131,3 @@ | ||
"to": "<not provided>", | ||
"when": "YYYY/MM/DD HH:mm, UTC Z", | ||
"images": "<empty>", | ||
@@ -158,2 +163,6 @@ "social": { | ||
### `when` | ||
Here you can pass a `moment` [format string][15]. Eg. `'[um] HH:mm [am] DD.MM.YYYY'`. The default format passed to `moment` is `'YYYY/MM/DD HH:mm, UTC Z'`. | ||
### `images` | ||
@@ -305,2 +314,4 @@ | ||
![terminal.png][13] | ||
# Providers | ||
@@ -380,3 +391,3 @@ | ||
You're welcome to contribute to the development of `campaign`! Additional template engines and providers would be nice, and I'd encourage creating packages that solely contain that engine or email provider. For instance, you could create `campaign-jade`, or `campaign-postmark`. | ||
You're welcome to contribute to the development of `campaign`! Additional template engines and providers would be nice, and I'd encourage creating packages that solely contain that engine or email provider. For instance, you could create `campaign-ejs`, or `campaign-postmark`. | ||
@@ -402,1 +413,4 @@ Hmmm, yeah. That'd be great! | ||
[12]: http://www.sitepoint.com/javascript-truthy-falsy/ | ||
[13]: http://i.imgur.com/fTh1JiD.png | ||
[14]: https://github.com/bevacqua/campaign-jade | ||
[15]: http://momentjs.com/docs/#/displaying/format/ |
@@ -54,2 +54,6 @@ 'use strict'; | ||
if (!model.when) { | ||
model.when = 'YYYY/MM/DD HH:mm, UTC Z'; | ||
} | ||
model.from = options.from; | ||
@@ -56,0 +60,0 @@ model._template = template ? filename(template) : '(dynamic)'; |
@@ -12,3 +12,3 @@ 'use strict'; | ||
model.generated = moment().format('YYYY/MM/DD HH:mm, UTC Z'); | ||
model.generated = moment().format(model.when); | ||
model.body = html; | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44300
415
411