Styled front

ref #14
This commit is contained in:
2021-02-08 15:53:44 +01:00
parent b92a6f7b2b
commit 016f746c7c
2 changed files with 17 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ export class PdfCreator {
await i18next.changeLanguage(locale);
const template_source = fs.readFileSync(`${this.templateDir}/runner_card.html`, 'utf8');
const template = Handlebars.compile(template_source);
const result = template({ cards })
const result = template({ cards, eventname: "LfK! 2069" })
const pdf = await this.renderPdf(result, { format: "A4", landscape: false });
return pdf
}