Parcourir la source

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

SVI il y a 2 ans
Parent
commit
ceb5fe616e
3 fichiers modifiés avec 22 ajouts et 0 suppressions
  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}}