add template example

This commit is contained in:
Jay
2019-02-26 17:02:43 +08:00
parent 155e41f618
commit 6751afdfde
4 changed files with 31 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
{{ template "head.tmpl" . }}
Content
{{ template "foot.tmpl" . }}
+3
View File
@@ -0,0 +1,3 @@
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ .title }}</title>
</head>
<body>