fixed templating

This commit is contained in:
David Alasow 2018-12-03 12:29:17 +01:00
parent e077d0484b
commit c5e839e13e
9 changed files with 168 additions and 91 deletions

View file

@ -0,0 +1,18 @@
{{ define "base" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Meikan data - {{ block "title" . }}Home{{ end }}</title>
<link rel="stylesheet" href="/static/stylesheet.css">
</head>
<body>
<div id="content">
{{ block "body" . }}{{ end }}
</div>
</body>
</html>
{{ end }}

View file

@ -0,0 +1,3 @@
{{ define "body" }}
<h1>Hello, 世界!</h1>
{{ end }}