layout optimisation and adjustments

This commit is contained in:
Dobromir Popov
2024-02-28 12:44:28 +02:00
parent 138530597a
commit 243405db0c
9 changed files with 156 additions and 19 deletions

View File

@ -169,7 +169,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
fs.writeFileSync(path.join(outputPath, `shifts ${year}.${month}.json`), JSON.stringify(monthlySchedule), 'utf8');
// Load the Handlebars template from a file
const template = fs.readFileSync("./src/templates/word.html", "utf8");
const template = fs.readFileSync("./src/templates/schedule.hbs", "utf8");
generateTemplateFile(monthlySchedule, template).then((result) => {
const filename = path.join(outputPath, `schedule ${year}.${month}.html`)
//fs.writeFileSync(filename, result, "utf8");