2016-02-11 11:40:10 +00:00
|
|
|
doctype html
|
|
|
|
html(lang="en")
|
|
|
|
head
|
2016-02-14 21:55:57 +00:00
|
|
|
title
|
|
|
|
Today
|
2016-02-11 11:40:10 +00:00
|
|
|
body
|
|
|
|
h1 Today
|
2016-02-14 21:55:57 +00:00
|
|
|
.stuff
|
2016-02-16 16:16:36 +00:00
|
|
|
| !{data.today}
|
2016-02-11 12:17:10 +00:00
|
|
|
.weather
|
2016-02-11 11:40:10 +00:00
|
|
|
h2 Weather
|
|
|
|
p Currently:
|
|
|
|
= ' ' + data.weather.currently
|
2016-02-14 23:00:15 +00:00
|
|
|
p Today:
|
2016-02-11 11:40:10 +00:00
|
|
|
= ' ' + data.weather.today
|
2016-02-14 23:00:15 +00:00
|
|
|
p Later:
|
|
|
|
= ' ' + data.weather.later
|
2016-02-11 11:40:10 +00:00
|
|
|
|
|
|
|
if data.weather.alerts.length > 0
|
2016-02-11 12:17:10 +00:00
|
|
|
h3 ALERT
|
2016-02-11 11:40:10 +00:00
|
|
|
each alert in data.weather.alerts
|
|
|
|
p(style="color:red;")= alert.title
|
|
|
|
p= alert.description
|
|
|
|
|
2016-02-11 12:17:10 +00:00
|
|
|
.travel
|
2016-02-11 12:16:02 +00:00
|
|
|
h2 Travel
|
2016-02-11 11:40:10 +00:00
|
|
|
if data.trains.data.length > 0
|
|
|
|
each alert in data.trains.data
|
|
|
|
strong= alert.title
|
|
|
|
p= alert.description
|
2016-02-11 12:16:02 +00:00
|
|
|
else
|
|
|
|
p Nothing to report.
|
2016-02-16 16:16:36 +00:00
|
|
|
.calendar
|
|
|
|
if data.cal.entries.length > 0
|
|
|
|
h2 Calendar
|
2016-02-19 15:46:20 +00:00
|
|
|
each line in data.cal.entries
|
2016-02-16 16:16:36 +00:00
|
|
|
p !{line.combined}
|
2016-02-12 10:23:43 +00:00
|
|
|
.history
|
|
|
|
h2 Today in history
|
|
|
|
if data.history.length > 0
|
|
|
|
each line in data.history
|
|
|
|
p= line
|
|
|
|
else
|
|
|
|
p Nothing of note happened today.
|
|
|
|
|
2016-02-16 16:16:36 +00:00
|
|
|
.tv
|
|
|
|
if data.tv.entries.length > 0
|
|
|
|
h2 Todays TV
|
|
|
|
each line in data.tv.entries
|
|
|
|
p !{line.combined}
|
|
|
|
|
2016-02-11 11:40:10 +00:00
|
|
|
|
|
|
|
|