Make /_config/*.jst use ES6 superclass calls, fix failure to await the superclass...
[olly_site.git] / index.html.jst
1 return async env => {
2   let _out = []
3   _out.push('<!DOCTYPE html>')
4   html {
5     head {
6       link(rel="stylesheet" type="text/css" href="olly.css") {}
7       title {
8         'Olly\'s Website'
9       }
10     }
11     body.olly {
12       h1 {
13         'Olly\'s Website'
14       }
15       ul{
16         li{
17           a(href="/circle.html") {
18             'Go to Circle Calculator'
19           }
20         }
21         li{
22           a(href="/trapezium.html") {
23             'Go to Trapezium Area Calculator'
24           }
25         }
26         li{
27           a(href="/blog.html") {
28             'Go to Daily Blog'
29           }
30         }
31       }
32     }
33   }
34   env.site.serve(env, 200, Buffer.from(_out.join('')), 'index.html.jst')
35 }