final html export hook

pull/2443/head
John McLear 2015-01-06 16:31:52 +00:00
parent 2e2dd688e9
commit 17ce67d936
1 changed files with 6 additions and 2 deletions

View File

@ -158,8 +158,12 @@ exports.doExport = function(req, res, padId, type)
//if this is a html export, we can send this from here directly
if(type == "html")
{
// do any final changes the plugin might want to make cake
hooks.aCallFirst("exportHTMLSend", html, function(err, newHTML){
if(newHTML.length) html = newHTML;
res.send(html);
callback("stop");
});
}
else //write the html export to a file
{