This commit is contained in:
Ahmed Bouhuolia
2023-11-13 20:50:48 +02:00
parent 6634144d82
commit b75d44a3dd
23 changed files with 10151 additions and 5963 deletions

View File

@@ -372,7 +372,7 @@ const mergeObjectsBykey = (object1, object2, key) => {
};
function templateRender(filePath, options) {
const basePath = path.join(__dirname, '../../resources/views');
const basePath = path.join(global.__resources_dir, '/views');
return pug.renderFile(`${basePath}/${filePath}.pug`, options);
}