1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-23 05:37:23 +00:00

Support post-save callback.

This commit is contained in:
devlinjd 2015-12-16 11:26:30 -05:00
parent 1603a4bc73
commit 0c1364593a

View File

@ -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);