mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-02 03:04:19 +01:00
config data overrides session data
This commit is contained in:
@@ -352,7 +352,7 @@ module.exports = class App {
|
||||
if( !fs.existsSync(targetDir) ) {
|
||||
fs.mkdirSync(targetDir, { recursive: true });
|
||||
}
|
||||
const result = await ejsRenderFileAsync( this.templatePath(p), Object.assign({},this.config.data,this.sessionData), {} );
|
||||
const result = await ejsRenderFileAsync( this.templatePath(p), Object.assign({}, this.sessionData, this.config.data), {} );
|
||||
|
||||
console.log( chalk.green( ' create' )+' '+p );
|
||||
fs.writeFileSync( destFile, result );
|
||||
|
||||
Reference in New Issue
Block a user