1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +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 { try {
MKDIRP.sync( PATH.dirname( tplInfo.major ? f : thisFilePath) ); MKDIRP.sync( PATH.dirname( tplInfo.major ? f : thisFilePath) );
FS.writeFileSync( tplInfo.major ? f : thisFilePath, mk, { encoding: 'utf8', flags: 'w' } ); 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) { catch(ex) {
console.log(ex); console.log(ex);