|
|
@ -48,6 +48,10 @@ var fs = require('fs'),
|
|
|
|
function renderAndTranslate(tpl, params, callback) {
|
|
|
|
function renderAndTranslate(tpl, params, callback) {
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
function(next) {
|
|
|
|
function(next) {
|
|
|
|
|
|
|
|
app.render('emails/partials/footer' + (tpl.indexOf('_plaintext') !== -1 ? '_plaintext' : ''), params, next);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
function(footer, next) {
|
|
|
|
|
|
|
|
params.footer = footer;
|
|
|
|
app.render(tpl, params, next);
|
|
|
|
app.render(tpl, params, next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function(html, next) {
|
|
|
|
function(html, next) {
|
|
|
|