{{ $data := getJSON (.Get "url") }} {{ with $data.schedule }} {{ $timeslotDuration := 0 }} {{ range split .conference.timeslot_duration ":" }} {{ $timeslotDuration = add (mul $timeslotDuration 60) (int .) }} {{ end }} {{ $rooms := dict }} {{ range $day := .conference.days }} {{ range $room := $data.schedule.conference.rooms }} {{ with index $day.rooms $room.name }} {{ if index $rooms $room.name }} {{ $rooms = merge $rooms (dict $room.name ((index $rooms $room.name) | append .)) }} {{ else }} {{ $rooms = merge $rooms (dict $room.name .) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ $events := slice }} {{ range $rooms }} {{ with . }} {{ if $events }} {{ $events = $events | append . }} {{ else }} {{ $events = . }} {{ end }} {{ end }} {{ end }} {{ $events = sort $events "date" }} {{ $startDate := time (index $events 0).date }} {{ $endDate := 0 }} {{ with index $events (sub (len $events) 1) }} {{ $lastDuration := 0 }} {{ range split .duration ":" }} {{ $lastDuration = add (mul $lastDuration 60) (int .) }} {{ end }} {{ $endDate = time (add (time .date).Unix (mul $lastDuration 60)) }} {{ end }}
Version: {{ .version }}
Zeitangaben in {{ $startDate.Format "MST" }}
{{ $speaker }}