From 0c1364593a4eb55d357687d5d289f4b34f039426 Mon Sep 17 00:00:00 2001 From: devlinjd Date: Wed, 16 Dec 2015 11:26:30 -0500 Subject: [PATCH] Support post-save callback. --- src/gen/template-generator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gen/template-generator.js b/src/gen/template-generator.js index 1fd47db..8c9696c 100644 --- a/src/gen/template-generator.js +++ b/src/gen/template-generator.js @@ -199,6 +199,7 @@ Template-based resume generator base for FluentCV. try { MKDIRP.sync( PATH.dirname( tplInfo.major ? f : thisFilePath) ); FS.writeFileSync( tplInfo.major ? f : thisFilePath, mk, { encoding: 'utf8', flags: 'w' } ); + this.onAfterSave && (mk = this.onAfterSave( { outputFile: (tplInfo.major ? f : thisFilePath), mk: mk } )); } catch(ex) { console.log(ex);