瀏覽代碼

SVI Добавление шаблонов

SVI 2 年之前
父節點
當前提交
ceb5fe616e
共有 3 個文件被更改,包括 22 次插入0 次删除
  1. 7 0
      web/tmpl/footer.tmpl.html
  2. 12 0
      web/tmpl/header.tmpl.html
  3. 3 0
      web/tmpl/index.tmpl.html

+ 7 - 0
web/tmpl/footer.tmpl.html

@@ -0,0 +1,7 @@
+{{ define "footer" }}
+<br>
+Тут подвал.
+</body>
+
+</HTML>
+{{end}}

+ 12 - 0
web/tmpl/header.tmpl.html

@@ -0,0 +1,12 @@
+{{ define "header" }}
+<HTML lang="ru">
+
+    <head>
+        <title>{{.Title}}</title>
+        <meta charset="utf-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta pragma="no-cache">
+    </head>
+
+    <body>
+{{end}}

+ 3 - 0
web/tmpl/index.tmpl.html

@@ -0,0 +1,3 @@
+{{ define "index" }}
+<h1>WarTank</h1>
+{{end}}