old-silvrgit/lib/jade/today.jade
2016-02-14 14:41:30 +00:00

40 lines
1021 B
Plaintext

doctype html
html(lang="en")
head
title
Today
body
h1 Today
.stuff !{data.today}
.weather
h2 Weather
p Currently:
= ' ' + data.weather.currently
p Later:
= ' ' + data.weather.today
if data.weather.alerts.length > 0
h3 ALERT
each alert in data.weather.alerts
p(style="color:red;")= alert.title
p= alert.description
.travel
h2 Travel
if data.trains.data.length > 0
each alert in data.trains.data
strong= alert.title
p= alert.description
else
p Nothing to report.
.history
h2 Today in history
if data.history.length > 0
each line in data.history
p= line
else
p Nothing of note happened today.