serve templates from disk

This commit is contained in:
sm
2017-01-26 20:16:12 -08:00
parent 85296b4e1b
commit 09f4fef613
6 changed files with 92 additions and 36 deletions
+13
View File
@@ -0,0 +1,13 @@
{{ define "base" }}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>ωτφ</title>
<link rel="stylesheet" type="text/css" href="/static/css/sm.css">
</head>
<body>
{{ template "body" . }}
</body>
</html>
{{ end }}
+15
View File
@@ -0,0 +1,15 @@
{{ define "body" }}
<div id="content">
<div id="title">
<a href="https://s.mcquay.me">smcquay</a>
</div>
<div id="pic">
<a href="https://s.mcquay.me"><img src="/static/img/smcquay.png"></a>
</div>
<div id="info">
<p>
My name is <a href="http://stephen.mcquay.me">Stephen McQuay</a>.
</p>
</div>
</div>
{{ end }}