Hello, I want to read table data to display upcoming events from a toml file. Here is what I got:
My TOML-File looks something like this:
[[event]]
date = 2024-03-02
name = "Nice event"
comment = "Please show up"
#let events = toml("events.toml").event
#table(
columns: 3,
table.header(
[Date],
[Event],
[Comment],
),
for event in events {
table.cell(termin.date.display())
table.cell(termin.name)
table.cell(termin.comment)
}
)
This works with the exception that all three fields are displayed in the first table cell. Not in their respective table cells. How do I fix this?