use baseof block
parent
64de2c9a5f
commit
526f385980
Binary file not shown.
|
@ -0,0 +1,13 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> {{ .Title }} </title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{{ block "main" . }}
|
||||
empty
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,7 +1,4 @@
|
|||
<html>
|
||||
<head> <title> {{ .Title }} </title> </head>
|
||||
|
||||
<body>
|
||||
{{ define "main" }}
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
|
@ -12,6 +9,4 @@
|
|||
{{ end }}
|
||||
</ul>
|
||||
</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
<html>
|
||||
<head> <title> {{ .Title }} </title> </head>
|
||||
|
||||
<body>
|
||||
{{ define "main" }}
|
||||
<h1> {{ .Title }} </h1>
|
||||
{{ .Content }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue