1 | ;
|
2 |
|
3 | var setsCtrl = require("./sets/controller");
|
4 |
|
5 | /*===================================================== Exports =====================================================*/
|
6 |
|
7 | exports.parse = prependStylesToEmail;
|
8 |
|
9 | /*==================================================== Functions ====================================================*/
|
10 |
|
11 | function prependStylesToEmail(email, cb) {
|
12 | var style = setsCtrl.styles.email;
|
13 | if (style) {
|
14 | email.html = "<style type=\"text/css\">" + style + "</style>\n" + email.html;
|
15 | }
|
16 | cb(null, email);
|
17 | }
|