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

22 lines
351 B
Plaintext

{{define "header"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{.Props.Title}}</title>
</head>
<body>
{{end}}
{{define "footer"}}
</body>
</html>
{{end}}
{{define "page"}}
{{template "header" .}}
<h1>{{.Props.Title}}</h1>
{{.Props.Content}}
{{template "footer" .}}
{{end}}