1
goldsmith-samples/basic/content/layouts/basic.gohtml

22 lines
351 B
Plaintext
Raw Normal View History

2016-11-02 02:37:42 +00:00
{{define "header"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
2022-01-09 02:33:05 +00:00
<title>{{.Props.Title}}</title>
2016-11-02 02:37:42 +00:00
</head>
<body>
{{end}}
{{define "footer"}}
</body>
</html>
{{end}}
{{define "page"}}
2019-04-08 18:28:50 +00:00
{{template "header" .}}
2022-01-09 02:33:05 +00:00
<h1>{{.Props.Title}}</h1>
{{.Props.Content}}
2019-04-08 18:28:50 +00:00
{{template "footer" .}}
2016-11-02 02:37:42 +00:00
{{end}}