infoalloggi-monorepo/apps/infoalloggi/typst/testi.typ
Marco Pedone 8c48dbb4b6 feat: integrate Typst for PDF generation and add new fonts
- Added Typst templates for receipts and announcements.
- Implemented TypstRunner and TypstRunner2 services for PDF generation.
- Included necessary fonts for Typst rendering.
- Updated Dockerfile to install Typst and Pandoc.
- Enhanced API with new endpoints for Typst functionality.
- Added temporary directory handling for generated files.
- Updated .gitignore and .dockerignore to exclude temporary files.
2026-04-01 10:44:46 +02:00

23 lines
531 B
Typst

#let data = sys.inputs.at("data", default: none)
#set page(paper: "a4", margin: 1cm)
#set text(font: "Inter 18pt", size: 10pt, lang: "it")
#show heading: set text(fill: rgb("#1a202c"))
#show heading.where(level: 2): set text(size: 14pt)
#show heading.where(level: 3): set text(size: 12pt)
#set par(justify: true, leading: 0.65em)
#let data_file = sys.inputs.at("data_path", default: "none")
#let data = if data_file != "none" { json(data_file) } else {
(
"stringa": "none",
)
}
#eval(data.stringa, mode: "markup")