{{template "layout" .}} {{define "content"}} <div>Hello World!</div> <div>Template Inheritance in Go html/template</div> {{end}}