best routing, static files embedding
This commit is contained in:
5
templates/edit.tmpl
Normal file
5
templates/edit.tmpl
Normal file
@@ -0,0 +1,5 @@
|
||||
{{#HEADER#}}
|
||||
|
||||
<textarea>{{ .Body.Var1 }}</textarea>
|
||||
|
||||
{{#FOOTER#}}
|
||||
@@ -1,7 +0,0 @@
|
||||
{{ define "Head" }}
|
||||
{{ template "head" }}
|
||||
{{ end }}
|
||||
|
||||
{{define "Body"}}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
5
templates/footer.tmpl
Normal file
5
templates/footer.tmpl
Normal file
@@ -0,0 +1,5 @@
|
||||
<footer>
|
||||
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js" lang="en_UK">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="">
|
||||
</head>
|
||||
13
templates/header.tmpl
Normal file
13
templates/header.tmpl
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js" lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#fff">
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" href="/admin/assets/css/normalize.css">
|
||||
<link rel="stylesheet" href="/admin/assets/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Reference in New Issue
Block a user