func (p *Page) applyTemplates() (out string, err error) {
	var content strings.Builder
	if err = p.template.Execute(&content, p); err != nil {
		return
	}
	p.Page.Content = content.String()
	content.Reset()
	if err = p.layout.Execute(&content, p); err != nil {
		return
	}
	out = content.String()
	return
}
// applyTemplates evaluates the page template and then uses the output as the content for the layout template
applyTemplates evaluates the page template and then uses the output as the content for the layout template
// applyTemplates evaluates the page template and then uses the output as the content for the layout template
func (p *Page) applyTemplates() (out string, err error) {
	var content strings.Builder
	if err = p.template.Execute(&content, p); err != nil {
		return
	}
	p.Page.Content = content.String()
	content.Reset()
	if err = p.layout.Execute(&content, p); err != nil {
		return
	}
	out = content.String()
	return
}
func ( p * Page ) applyTemplates ( ) ( out string , err error ) { var content strings . Builder if err = p . template . Execute ( & content , p ) ; err != nil { return } p . Page . Content = content . String ( ) content . Reset ( ) if err = p . layout . Execute ( & content , p ) ; err != nil { return } out = content . String ( ) return }
applyTemplates evaluates the page template and then uses the output as the content for the layout template
applyTemplates evaluates the page template and then uses the output as the content for the layout template