27 lines
623 B
Plaintext
27 lines
623 B
Plaintext
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
PRODID:-//astro/ticker//NONSGML v1.0//DE
|
|
METHOD:PUBLISH
|
|
X-WR-TIMEZONE;VALUE=TEXT:Europe/Berlin
|
|
|
|
{% for e in events -%}
|
|
BEGIN:VEVENT
|
|
SUMMARY:{{ e.summary }}
|
|
DTSTAMP:{{ e.dtstart.format("%Y%m%dT%H%M%S").to_string() }}
|
|
DTSTART:{{ e.dtstart.format("%Y%m%dT%H%M%S").to_string() }}
|
|
{% if let Some(dtend) = e.dtend -%}
|
|
DTEND:{{ dtend.format("%Y%m%dT%H%M%S") }}
|
|
{% endif -%}
|
|
UID:{{ e.id.replace(char::is_whitespace, "_") }}
|
|
{% if let Some(url) = e.url -%}
|
|
URL:{{ url }}
|
|
{% endif -%}
|
|
{% if let Some(location) = e.location -%}
|
|
LOCATION:{{ location }}
|
|
{% endif -%}
|
|
END:VEVENT
|
|
|
|
{% endfor -%}
|
|
END:VCALENDAR
|
|
|