goldsmith/plugins/rule/testdata/source/page.gohtml

17 lines
238 B
Plaintext
Raw Normal View History

2024-02-17 06:35:49 +00:00
{{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}}