goldsmith/plugins/rule/testdata/source/page.gohtml
2024-02-16 22:35:49 -08:00

17 lines
238 B
Plaintext

{{define "page"}}
<html>
<body>
{{template "title" .Props.Title}}
{{template "content" .Props.Content}}
</body>
</html>
{{end}}
{{define "title"}}
<h1>{{.}}</h1>
{{end}}
{{define "content"}}
<p>{{.}}</p>
{{end}}