Created
August 11, 2014 13:23
-
-
Save baudehlo/9dd4567d95982cbe2d46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var render = exports.render = function (name, data, cb) { | |
// console.log("Rendering " + name + ".jade"); | |
jade.renderFile(__dirname + '/../views/emails/' + name + '.jade', data, function (err, template_output) { | |
if (err) return cb(err); | |
if (juice) return juice.juiceContent(template_output, juice_options, cb); | |
return cb(null, template_output); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment