mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 08:20:11 +00:00
Support post-save callback.
This commit is contained in:
parent
1603a4bc73
commit
0c1364593a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user