You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2021. It is now read-only.
Please note that for Flow Router you need to have your routes defined in a place where the server can see them, in order for the `emailUrlFor` helper to work.
252
+
247
253
#### The preview line
248
254
249
255
The *preview line* is the first text content of an email, usually visible in many email clients. That can be used to convey more info beyond the `subject` prop. It's possible to have your preview content in your parent layout but still provide the data from a child template.
@@ -362,9 +368,9 @@ Consult the `html-to-text` [documentation](https://www.npmjs.com/package/html-to
362
368
363
369
It's also possible to *send* emails to yourself or others for review in a real mail client.
364
370
365
-
Noticed the `route` property on the template? It uses Iron Router's server side routes under the hood.
371
+
Noticed the `route` property on the template? It uses `meteorhacks:picker` server side routes under the hood.
366
372
367
-
The `route` property expects a `path` property (feel free to use any of Iron Router's fanciness in here) and an optional `data` function providing the data context (an object). The function has access to the same scope as Iron Router's `action` hook, which means you can get a hold of parameters and the whole shebang.
373
+
The `route` property expects a `path` property and an optional `data` function providing the data context (an object). The function has access to the parameters of the route.
368
374
369
375
**Three routes** will be added:
370
376
@@ -375,7 +381,7 @@ The `route` property expects a `path` property (feel free to use any of Iron Rou
375
381
```
376
382
The `/emails` root prefix is configurable in `config` in the `routePrefix` key.
377
383
378
-
The Iron Router *route names* will be on the format
384
+
The *route names* will be on the format
379
385
380
386
```
381
387
[preview|send]Name
@@ -464,6 +470,7 @@ Why not try [`meteor-logger`](https://github.com/lookback/meteor-logger)? :)
464
470
465
471
## Version history
466
472
473
+
-`0.7.0` - Replaced Iron Router dependency with `meteorhacks:picker`, which means you can now use this package with Flow Router as well.
467
474
-`0.6.2` - Support passing options to `html-to-text` module in `Mailer.config()`.
468
475
-`0.6.1`- Fix critical runtime crash when sending emails.
469
476
-`0.6.0` - Automatically create and include plain text email version from your HTML templates, using [`html-to-text`](http://npmjs.com/package/html-to-text).
0 commit comments